Last active
February 15, 2024 22:50
-
-
Save joparara/734165b80755b00dc2fbf9bd33181d34 to your computer and use it in GitHub Desktop.
git-nah function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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