Update an outdated branch against master in a Git repo -



Update an outdated branch against master in a Git repo -

i have git repository has branch (local , remote) has become outdated. bring branch date master branch, don't know how this. there many merge conflicts.

how can bring or update out-of-date branch same state master branch?

update master branch, need regardless.

then, 1 of:

rebase old branch against master branch. solve merge conflicts during rebase, , result up-to-date branch merges cleanly against master.

merge branch master, , resolve merge conflicts.

merge master branch, , resolve merge conflicts. then, merging branch master should clean.

none of these improve other, have different trade-off patterns.

i utilize rebase approach, gives cleaner overall results later readers, in opinion, nil aside personal taste.

to rebase , maintain branch would:

git checkout <branch> && git rebase <target>

in case, check out old branch,

git rebase master

to rebuilt against master.

git git-branch

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -