Git restore to remote version

Saturday 23/07/2022

·1 min read
Share:

Sometimes I want to reset my git branch to the remote version.

This is how it's done:

git reset --hard 'origin/myBranch
Share:
VA

Vadim Alakhverdov

Software developer writing about JavaScript, web development, and developer tools.