Created
March 19, 2025 13:55
-
-
Save PaulRBerg/63d451c63cae910c525dc41d71bf2fb3 to your computer and use it in GitHub Desktop.
git done helper
This file contains 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
[alias] | |
# Go to the main branch, pull the latest changes, and delete the current branch. | |
done = "!f() { BRANCH=$(git branch --show-current); git checkout main && git pull && git branch -d $BRANCH; }; f" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment