Skip to content

Instantly share code, notes, and snippets.

@nhthai2005
Created June 15, 2021 08:38
Show Gist options
  • Save nhthai2005/379e0433a385b41d86aec0838c07a953 to your computer and use it in GitHub Desktop.
Save nhthai2005/379e0433a385b41d86aec0838c07a953 to your computer and use it in GitHub Desktop.
Git Reset Hard
#!/bin/bash
git restore *
git clean -fd
git reset --hard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment