"git rebase origin" vs."git rebase origin/master" -
i don't difference between git rebase origin
, git rebase origin/master
. in case cloned git repository twice. in first clone have use git rebase origin
, in other clone must use git rebase origin/master
.
an example: http://paste.dennis-boldt.de/2011/05/11/git-rebase
here's better option:
git remote set-head -a origin
from documentation:
with -a, remote queried determine head, $git_dir/remotes//head set same branch. e.g., if remote head pointed @ next, "git remote set-head origin -a" set $git_dir/refs/remotes/origin/head refs/remotes/origin/next. work if refs/remotes/origin/next exists; if not must fetched first.
this has been around quite while (since v1.6.3); not sure how missed it!
Comments
Post a Comment