small fixes
This commit is contained in:
parent
67c084ef21
commit
aebfeb1161
18
push.sh
18
push.sh
|
@ -1,7 +1,19 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
echo funzte nicht
|
|
||||||
exit 1
|
date="$(date +%Y-%m-%d)"
|
||||||
git add content/news
|
changedfiles=$(git diff --name-status|awk '{print $2}')
|
||||||
|
|
||||||
|
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 push origin --set-upstream origin/main
|
||||||
|
|
||||||
|
exit
|
||||||
|
git add content/posts
|
||||||
git commit --amend --no-edit
|
git commit --amend --no-edit
|
||||||
target="origin"
|
target="origin"
|
||||||
force="-f"
|
force="-f"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user