git-svn 上游状态检查
在 git-svn 存储库中,
git status
没有显示通常的情况
# On branch master
# Your branch is behind 'origin/git-svn' by 1 commits.
#
nothing to commit (working directory clean)
,是否有一种方法可以以不同的方式配置上游,以便状态反映远程?
目前,我只是不断地运行
git svn rebase
来检查更改,但很高兴知道我是否需要提前重新设置基准。
in a git-svn repo,
git status
doesn't show the usual
# On branch master
# Your branch is behind 'origin/git-svn' by 1 commits.
#
nothing to commit (working directory clean)
is there a way to configure the upstream differently so that the status will reflect the remote?
currently, i just consistently run
git svn rebase
to check for changes, but it would be nice to know if I have to rebase or not in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信“git svn fetch”会提取信息,而无需更新位于“svn 分支”之上的当前 git 分支。因此,如果您执行“git fetch”,它应该包含该信息。但是,默认情况下“git status”仍然不会显示它。但是像 gitk 和 'git svn info' 和 'git log' 这样的想法将帮助你弄清楚你落后了多远,而无需实际进行 rebase。
I believe 'git svn fetch' will pull in the information without updating your current git branch that sits ontop the 'svn branch'. Thus, if you do a 'git fetch' it should have the information. 'git status' still won't show it by default, however. But thinks like gitk and 'git svn info' and 'git log' will help you figure out how far behind you are without actually doing the rebase.