Git:差异"git rebase origin/branch" VS"git rebase origin branch" [英] Git: difference "git rebase origin/branch" VS "git rebase origin branch"
本文介绍了Git:差异"git rebase origin/branch" VS"git rebase origin branch"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人知道有什么区别吗?在我看来,是一样的.但是当我运行它时,它并没有做同样的事情:
Does anyone know what is the difference? Seems to me, it is the same. But when I run it, it didn't do the same thing:
git rebase origin/branch
-可以从远程分支重新设置
git rebase origin/branch
- ok rebases from remote branch
git rebase origin branch
-产生冲突
推荐答案
git rebase <upstream> <branch>
等于
git checkout <branch>
git rebase <upstream>
默认情况下,<branch>
是HEAD
.
[1] https://www.kernel .org/pub/software/scm/git/docs/git-rebase.html
这篇关于Git:差异"git rebase origin/branch" VS"git rebase origin branch"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文