forked from Bunteshaus/bunteshaus.de
18 lines
308 B
Bash
Executable File
18 lines
308 B
Bash
Executable File
#!/bin/bash
|
|
date="$(date +%Y-%m-%d)-test"
|
|
|
|
git pull --rebase upstream main && \
|
|
git push --set-upstream origin origin/main && \
|
|
|
|
exit
|
|
git add content/posts
|
|
git commit --amend --no-edit
|
|
target="origin"
|
|
force="-f"
|
|
if [ "$1" = "upstream" ]; then
|
|
target=upstream
|
|
force=""
|
|
fi
|
|
|
|
git push ${target} ${force}
|