forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
e61d820cbf
commit
3d546ef4a6
6
push.sh
6
push.sh
|
@ -1,16 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
date="$(date +%Y-%m-%d)"
|
||||
date="$(date +%Y-%m-%d)-test"
|
||||
changedfiles=$(git diff --name-status|awk '{print $2}')
|
||||
|
||||
if ! git switch "${date}"; then
|
||||
git switch -c ${date} origin/main
|
||||
fi
|
||||
|
||||
set -x
|
||||
git add . && \
|
||||
git commit -m "${date}: ${changedfiles}" && \
|
||||
git pull --rebase upstream main && \
|
||||
git push -f origin --set-upstream origin/"${date}" && \
|
||||
git push -f origin && \
|
||||
git switch main
|
||||
|
||||
exit
|
||||
|
|
Loading…
Reference in New Issue
Block a user