How to merge remote master to local branch

前端 未结 4 1288
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-29 16:56

I have a local branch of a project (\"configUpdate\") that I\'ve forked from somebody else\'s project and I\'ve done a load of changes on it and would like to merge the changes

4条回答
  •  梦谈多话
    2021-01-29 17:34

    Switch to your local branch

    > git checkout configUpdate

    Merge remote master to your branch

    > git rebase master configUpdate

    In case you have any conflicts, correct them and for each conflicted file do the command

    > git add [path_to_file/conflicted_file] (e.g. git add app/assets/javascripts/test.js)

    Continue rebase

    > git rebase --continue

提交回复
热议问题