From a087ebc04157be46460d1374d75a81de52cf0b2b Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Thu, 30 Jul 2015 23:21:37 +0100 Subject: [PATCH] bash functions --- etc/profile.d/git.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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' -- 2.47.3