Skip to content

Instantly share code, notes, and snippets.

@carlohcs
Created May 27, 2025 14:28
Show Gist options
  • Save carlohcs/52889a3749e62a42657be605a110e855 to your computer and use it in GitHub Desktop.
Save carlohcs/52889a3749e62a42657be605a110e855 to your computer and use it in GitHub Desktop.
Reset master branch to origin/master
git fetch
git reset --hard @{u}
git reset --hard origin/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment