small fixes

This commit is contained in:
teldra 2022-06-26 18:19:22 +02:00
parent 9a0ae4ed1a
commit 151cd14526
1 changed files with 3 additions and 3 deletions

View File

@ -5,13 +5,13 @@ changedfiles=$(git diff --name-status|awk '{print $2}')
git pull --rebase upstream main
if ! git switch "${date}"; then
git switch -c ${date} upstream/main
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 --set-upstream origin/"${date}" && \
git switch main
exit