Skip to content

Instantly share code, notes, and snippets.

@fastjack
Created August 26, 2024 19:21
Show Gist options
  • Save fastjack/781e3df75c0e963303cccc9f35710ef3 to your computer and use it in GitHub Desktop.
Save fastjack/781e3df75c0e963303cccc9f35710ef3 to your computer and use it in GitHub Desktop.
Useful git aliases
[alias]
discard = reset HEAD --hard
rmuntracked = clean -df
unstage = reset HEAD --
uncommit = reset --soft HEAD^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment