Aliases - gecko-8/devwiki GitHub Wiki
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>