git - How to bring team's changes into my branch as neatly as possible? -
i've been puzzling on , can't figure out answer. let's team working on origin/develop (which i'm tracking locally) , i'm working on local branch feat-search. i'm several commits in, , want bring in changes develop branch. options are:
git pull origin developgit pull --rebase origin developgit checkout develop; git pull origin develop; git checkout feat-search; git rebase developgit checkout develop; git pull origin develop; git checkout feat-search; git merge develop- none of above; keep working on branch , don't bring in changes
develop
the thing is, think if use git pull --rebase, git graph collapsed when merge branch in , looks visually never branched off. people may not that. if use git pull, merges develop branch looks strange on graph well.
i'm confused hell. appreciated.
git pull --rebase, git graph collapsed when merge branch in , looks visually never branched off.
that not bug, feature, keep history linear.
doesn't remove branch: still branching off origin/develop. make sure merge develop trivial 1 (because working latest commits of origin/develop).
one advocate make sure git pull rebase:
git config --global --bool pull.rebase true if have many local feature branches rebase, can automate process with git-rebranch.
Comments
Post a Comment