forked from Bunteshaus/bunteshaus.de
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)"
|
||||
changedfiles=$(git diff --name-status|awk '{print $2}')
|
||||
git pull --rebase upstream main
|
||||
|
||||
if ! git switch "${date}"; then
|
||||
git switch -c ${date} upstream/main
|
||||
fi
|
||||
|
||||
git pull --rebase upstream main && \
|
||||
git add . && \
|
||||
git commit -m "${date}: ${changedfiles}" && \
|
||||
git pull --rebase upstream main && \
|
||||
git push -f origin --set-upstream origin "${date}" && \
|
||||
git switch main
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user