Skip to content

Instantly share code, notes, and snippets.

@mmktomato
Last active April 9, 2026 02:01
Show Gist options
  • Select an option

  • Save mmktomato/86d28a02629a95ed8c41d3bdc7658922 to your computer and use it in GitHub Desktop.

Select an option

Save mmktomato/86d28a02629a95ed8c41d3bdc7658922 to your computer and use it in GitHub Desktop.
Git force reset
git switch YOUR_BRNACH
git fetch && git reset --hard origin/YOUR_BRNACH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment