Answers for "git sync branches"

0

git sync branches

git fetch origin
git reset --hard origin/master
git clean -f -d

#If you want to retain the changes as unstaged files, use --soft instead of --hard.
#WARNING: All your untracked files will be gone when you do git clean -f -d.
Posted by: Guest on July-24-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language