summaryrefslogtreecommitdiff
path: root/git
diff options
context:
space:
mode:
Diffstat (limited to 'git')
-rw-r--r--git/.gitconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/.gitconfig b/git/.gitconfig
index 2f0bbb3..f44fe0e 100644
--- a/git/.gitconfig
+++ b/git/.gitconfig
@@ -8,7 +8,7 @@
templatedir = ~/.git_template
[alias]
ctags = !.git/hooks/ctags
- saveandsync = !git add . && git commit -m "Update" && git push origin master
+ saveandsync = !git add . && git diff --cached --exit-code || git commit -m "Update" && git push origin master
[http]
sslverify = false
[commit]