Reset local branch to match remote branch
Resets a local branch to match a remote branch by pulling the most recent changes from the remote branch and then force resetting the local branch to match the remote branch.
Authored by: Dan MouldingBrought to you by Warp, a free terminal reimagined to work like a modern app.
remote
branch
Command
Copy
git fetch origin
git reset --hard origin/master
Tags
Edit in GitHub
Copied