-
Notifications
You must be signed in to change notification settings - Fork 1
Aliases
Jason Lewis edited this page Dec 1, 2022
·
2 revisions
Aliases are created with the following console command:
git config --global alias.<command name> '<command>'
git config --global alias.acp '!f() { git add . && git commit -m \"$@\" && git push origin HEAD; }; f'
git config --global alias.acp '!f() { git add . && git commit -m "$@" && git push origin HEAD; }; f'
git acp "<commit message>"
Note: If you get an "Authentication failed" error, manually do the "git push " command. This will trigger the authentication flow. The add/commit section will have worked fine.
git config --global alias.dbranch '!f() { git branch -d \"$@\" && git push origin --delete \"$@\"; }; f'
git config --global alias.dbranch '!f() { git branch -d "$@" && git push origin --delete "$@"; }; f'
git dbranch <branch name>