From bb83945623fa6cef6c195c98a7776f45974c006c Mon Sep 17 00:00:00 2001 From: xyz Date: Sun, 17 Oct 2021 15:39:52 -0700 Subject: move work-tree to /, delete mods files, addd cfgL --- home/xyz/.local/bin/gitpu | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 home/xyz/.local/bin/gitpu (limited to 'home/xyz/.local/bin/gitpu') diff --git a/home/xyz/.local/bin/gitpu b/home/xyz/.local/bin/gitpu new file mode 100755 index 00000000..fcc32be9 --- /dev/null +++ b/home/xyz/.local/bin/gitpu @@ -0,0 +1,19 @@ +#!/bin/sh + +if [ -z "$1" ]; then + git checkout master + git pull upstream master + git push + git checkout fly + git merge --no-edit master + git push +else + for dir ; do + git -C "$dir" checkout master + git -C "$dir" pull upstream master + git -C "$dir" push + git -C "$dir" checkout fly + git -C "$dir" merge --no-edit master + git -C "$dir" push + done +fi -- cgit v1.2.3-70-g09d2