Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git update from another branch

git checkout develop
git pull
git checkout feature/myfeature
Now you can decide between running:

git merge develop
git rebase develop
The difference between merge and rebase is that merge keeps all commits history from your branch, and that is important if your partial commits have a lot of content that can be interesting to keep.

The rebase option is obligatory in some teams.

Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #update #branch
ADD COMMENT
Topic
Name
8+4 =