From: Don Armstrong Date: Mon, 19 Feb 2018 18:55:00 +0000 (-0800) Subject: use git pull --rebase instead of just git pull X-Git-Url: https://git.donarmstrong.com/?p=bin.git;a=commitdiff_plain;h=a86a71b0c965c73603ae84b266c12838c1289c54 use git pull --rebase instead of just git pull --- diff --git a/update_org_files b/update_org_files index a17171b..d93a40b 100755 --- a/update_org_files +++ b/update_org_files @@ -9,9 +9,11 @@ if [ "x$UPDATE_ORG_REALLY_DO_IT" == "xyesdoit" ]; then git status --porcelain -z | grep -z '^ M' | grep -z $ORG_GREP | \ sed -z 's/^ M[[:space:]]*//g' | \ xargs -0 git commit -m"$COMMIT_MESSAGE" + git pull --rebase; git push; + else + git pull --rebase; fi; - git pull; else if [ "x$NO_SAVE_ORG_BUFFERS" == "x" ]; then emacsclient -n -e '(org-save-all-org-buffers)' >/dev/null 2>&1