[M] Separate git commands to bashrc-git.sh
This commit is contained in:
@@ -0,0 +1,16 @@
|
|||||||
|
# Git commit wrapper
|
||||||
|
commit() {
|
||||||
|
msg="$@"
|
||||||
|
git commit -m "$msg"
|
||||||
|
}
|
||||||
|
|
||||||
|
commitall() {
|
||||||
|
git add .
|
||||||
|
commit "$@"
|
||||||
|
}
|
||||||
|
alias commita="commitall"
|
||||||
|
|
||||||
|
compush() {
|
||||||
|
commitall "$@"
|
||||||
|
git push
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user