相关疑难解决方法(0)

如何告诉git-svn我获取回购后创建的远程分支?

我正在使用git-svn我公司的中央git branch -r存储库.我们最近在中央仓库中创建了一个新功能分支.我怎么fetch说呢?当我跑步时,git-svn我只能看到当我git branch -rfetch仓库对抗以初始化我的git-svn仓库时存在的分支?

git git-svn

190
推荐指数
6
解决办法
7万
查看次数

git-svn:无法设置跟踪信息; 起点不是分支

在git 1.7.9.5中,我可以运行以下行而不会出现错误:

export SVNPASS=readonly
git clone git@github.com:dtenenbaum/RGalaxy.test.git
cd RGalaxy.test/
git config --add svn-remote.hedgehog.url https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/RGalaxy
git config --add svn-remote.hedgehog.fetch :refs/remotes/hedgehog
# the following is a shortcut to avoid fetching every commit since antiquity, since I happen to know the commit number
# where this folder was added to svn:
echo $SVNPASS | git svn fetch --username readonly hedgehog -r 65762:HEAD
git checkout -b local-hedgehog -t hedgehog
Run Code Online (Sandbox Code Playgroud)

在git 1.8.3.4和1.8.4.1中,最后一行导致:

fatal: Cannot setup tracking information; starting point 'hedgehog' is not a branch.
Run Code Online (Sandbox Code Playgroud)

对 …

git git-svn

22
推荐指数
2
解决办法
9388
查看次数

标签 统计

git ×2

git-svn ×2