I don’t get the difference between git rebase origin and git rebase origin/master. In my case I cloned a git repository twice. In the first clone I have to use git rebase origin and in the other clone I must use git rebase origin/master.
An example: http://paste.dennis-boldt.de/2011/05/11/git-rebase
git rebase originmeans “rebase from the tracking branch oforigin“, whilegit rebase origin/mastermeans “rebase from the branchmasteroforigin“You must have a tracking branch in
~/Desktop/test, which means thatgit rebase originknows which branch oforiginto rebase with. If no tracking branch exists (in the case of~/Desktop/fallstudie), git doesn’t know which branch oforiginit must take, and fails.To fix this, you can make the branch track
origin/masterwith:Or, if
masterisn’t the currently checked-out branch: