Answers for "git pull update from remote branch"

12

git pull from remote branch overwrite local

git reset --hard origin/master
Posted by: Guest on November-22-2019
0

git pull remote changes to local

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
Posted by: Guest on March-01-2022

Code answers related to "git pull update from remote branch"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language