Answers for "Reset and sync local repository with remote branch"

0

Reset and sync local repository with remote branch

# You may also add as an alias in your .gitconfig file:
alias resetorigin = git fetch origin && git reset --hard origin/master && git clean -f -d
alias resetupstream = git fetch upstream && git reset --hard upstream/master && git clean -f -d

# then type
git resetupstream
# or
git resetorigin
Posted by: Guest on February-16-2022

Code answers related to "Reset and sync local repository with remote branch"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language