Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Get all changes of the main branch locally

git checkout my_branch    # move on your branch (make sure it exists)
git fetch origin          # fetch all changes
git pull origin master    # pull changes from the origin remote, master branch and merge them into my_branch
git push origin my_branch # push my_branch
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Get #main #branch #locally
ADD COMMENT
Topic
Name
2+3 =