small fixes
This commit is contained in:
parent
9a0ae4ed1a
commit
151cd14526
6
push.sh
6
push.sh
|
@ -5,13 +5,13 @@ changedfiles=$(git diff --name-status|awk '{print $2}')
|
||||||
git pull --rebase upstream main
|
git pull --rebase upstream main
|
||||||
|
|
||||||
if ! git switch "${date}"; then
|
if ! git switch "${date}"; then
|
||||||
git switch -c ${date} upstream/main
|
git switch -c ${date} origin/main
|
||||||
fi
|
fi
|
||||||
|
set -x
|
||||||
git add . && \
|
git add . && \
|
||||||
git commit -m "${date}: ${changedfiles}" && \
|
git commit -m "${date}: ${changedfiles}" && \
|
||||||
git pull --rebase upstream main && \
|
git pull --rebase upstream main && \
|
||||||
git push -f origin --set-upstream origin "${date}" && \
|
git push -f origin --set-upstream origin/"${date}" && \
|
||||||
git switch main
|
git switch main
|
||||||
|
|
||||||
exit
|
exit
|
||||||
|
|
Loading…
Reference in New Issue