diff options
author | fpi | 2020-07-15 21:53:02 +0200 |
---|---|---|
committer | fpi | 2020-07-15 22:09:21 +0200 |
commit | a965137b4b6fe572f4f5daee467000dd8404200c (patch) | |
tree | 21497b4e6c8fd62f37e6aa06c035c647e9b59ec7 | |
parent | Make git ignore *.patch files (diff) |
Add a script to pull from origin with rebase
Diffstat (limited to '')
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | README.org | 8 |
2 files changed, 14 insertions, 0 deletions
@@ -8,3 +8,9 @@ tangle: link: tangle/link.sh + +fetch: + git fetch + +pull: + tangle/pull.sh @@ -25,6 +25,14 @@ git branch -a | grep -v -e +$ -e master | sed "s/[ *] //" | xargs git merge git push --force origin master #+end_src +To integrate changes from =origin= perform a rebase instead of merge +to loose the old merge commit but keep any local changes. + +#+begin_src shell :shebang "#!/bin/bash" :tangle tangle/pull.sh +git fetch +git rebase origin/master master +#+end_src + ** Updating all tangled files This script (re-)tangles all =.org= and =.org.gpg= files in the current directory. Run this in case the org files were updated outside |