diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-09-14 22:04:24 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-09-14 22:04:24 +0900 |
| commit | b5fef98bc8813ffb26a9a4a20305e6e551d8597a (patch) | |
| tree | 621bd152fecac102ad3b574a42125813aa222d7e /mac | |
| parent | e42539a76650fa4d397d8ec38269dfbde914b193 (diff) | |
modified bin/gitupdate, modified bin/gitupdate
Diffstat (limited to 'mac')
| -rwxr-xr-x | mac/.local/bin/gitupdate | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/mac/.local/bin/gitupdate b/mac/.local/bin/gitupdate index a2c83b5..69301b7 100755 --- a/mac/.local/bin/gitupdate +++ b/mac/.local/bin/gitupdate @@ -66,10 +66,6 @@ if [ -n "$changes" ] && [ "$unpushed" -eq 0 ]; then done | tr '\n' ',' | sed 's/,$//;s/,/, /g;s/"$//') fi message="${1:-$default}" - - # Add and commit changes - git add --all . - git commit -m "$message" else message=$(git cherry -v | awk '{$1=$2=""; print $0}' | sed 's/^ *//' | tail -n 1) fi @@ -77,6 +73,9 @@ fi if [ "$repo_root" = "${PASSWORD_STORE_DIR:-${HOME}/.password-store}" ]; then pass git remote | xargs -L1 pass git push --all else + # Add and commit changes + git add --all . + git commit -m "$message" git pull --rebase origin "$branch" git remote | xargs -L1 git push --all fi |
