bunteshaus.de/push.sh
2022-04-08 18:46:49 +02:00

11 lines
173 B
Bash
Executable File

git add content/news
git commit --amend --no-edit
target="origin"
force="-f"
if [ "$1" = "upstream" ]; then
target=upstream
force=""
fi
git push ${target} ${force}