Skip to content

Instantly share code, notes, and snippets.

@fede-green
Last active May 20, 2026 16:39
Show Gist options
  • Select an option

  • Save fede-green/2be0ce117175bf6342cda252ad466cef to your computer and use it in GitHub Desktop.

Select an option

Save fede-green/2be0ce117175bf6342cda252ad466cef to your computer and use it in GitHub Desktop.
git rm $(git ls-files --deleted)
#git remove unpushed commit
git reset HEAD~1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment