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:

  1. merge master feature:

    $ git checkout feature $ git merge master 

    this has disadvantage have resolve conflicts @ 1 time.

  2. rebase feature onto master:

    $ 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

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -