Skip to content

Instantly share code, notes, and snippets.

@joparara
Last active February 15, 2024 22:50
Show Gist options
  • Save joparara/734165b80755b00dc2fbf9bd33181d34 to your computer and use it in GitHub Desktop.
Save joparara/734165b80755b00dc2fbf9bd33181d34 to your computer and use it in GitHub Desktop.
git-nah function
# Bash function ⬇️
nah () {
git reset --hard
git clean -df
if [ -d ".git/rebase-apply" ] || [ -d ".git/rebase-merge" ]; then
git rebase --abort
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment