From: Nicolas Boisselier Date: Thu, 30 Jul 2015 22:21:37 +0000 (+0100) Subject: bash functions X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=a087ebc04157be46460d1374d75a81de52cf0b2b;p=nb.git bash functions --- diff --git a/etc/profile.d/git.sh b/etc/profile.d/git.sh index 8deece4c..03be020a 100644 --- a/etc/profile.d/git.sh +++ b/etc/profile.d/git.sh @@ -6,13 +6,11 @@ alias git_ls_tree="git ls-tree --full-tree -r HEAD" alias git_ls_files="git ls-files" git_commit_push() { - git commit -a -m "$*" - git push #|| echo "Try: git push --set-upstream origin master" + git commit -a -m "$*" && git push #|| echo "Try: git push --set-upstream origin master" } git_commit_push_add() { - git add . - git_commit_push "$@" + git add . && git_commit_push "$*" } GIT_CREATE_REPO='git@git.nbdom.net'