Skip to content

git-tricks-collection/marge-branch-to-other

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 

Repository files navigation

marge-branch-to-other

Simple action to copy branch into the other

  • Make sure to be in your development branch: $ git checkout branch_with_development

  • Move you to final files branch: $ git checkout branch_to_update

  • Rewrite final with development without lost versions: $ git merge branch_with_development

a better Rewrite way:

in this way you update your local branch (not high conflict) and set a new smart marge (direct accepting all incoming changes)

  • unix: $ git pull origin HEAD && git merge --strategy-option=theirs development
    win: > git pull origin HEAD; git merge --strategy-option=theirs development

About

Simple action to copy branch into the other

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published