Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

merge remote commits to local then push

git checkout master
git fetch <remote>

# Merge remote/master
git merge remote/master

# Or rebase local commits on top instead
git rebase remote/master

# Push the results
git push remote master
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #merge #remote #commits #local #push
ADD COMMENT
Topic
Name
2+2 =