small fixes
This commit is contained in:
parent
15b2a6debc
commit
260253f53d
3
push.sh
3
push.sh
|
@ -2,14 +2,15 @@
|
||||||
|
|
||||||
date="$(date +%Y-%m-%d)"
|
date="$(date +%Y-%m-%d)"
|
||||||
changedfiles=$(git diff --name-status|awk '{print $2}')
|
changedfiles=$(git diff --name-status|awk '{print $2}')
|
||||||
|
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} upstream/main
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git pull --rebase upstream main && \
|
|
||||||
git add . && \
|
git add . && \
|
||||||
git commit -m "${date}: ${changedfiles}" && \
|
git commit -m "${date}: ${changedfiles}" && \
|
||||||
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue