Answers for "update git local with latest remote branch"

11

git replace local branch with remote

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

git replace local branch with remote

git fetch
git reset --hard origin/{{branch}}
# replace {{branch}} with name
Posted by: Guest on December-06-2020

Code answers related to "update git local with latest remote branch"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language