GIT: Updating a feature branch with changes in master without merge -
i'm working on relatively large git repository, think follows reasonably standard setup follows: features developed in new branches, , merged master.
~6 months ago, feature partially implemented on new branch. turned out feature depended on bunch of other stuff, , put on burner until other stuff completed. leaves branch in question 18 commits ahead of master, , 93 commits behind, , has mix of contributors, don't want squash or loose history.
how current changes master onto feature branch please?
only thing can think of @ moment merging master , re-branching, there must better method of doing this, feature incomplete....
you have 2 options:
merge
master
feature
:$ git checkout feature $ git merge master
this has disadvantage have resolve conflicts @ 1 time.
rebase
feature
ontomaster
:$ git checkout feature $ git rebase master
if there conflicts, can resolve them manually each commit in
feature
's history. once conflicts resolved , added index, do$ git rebase --continue
Comments
Post a Comment