bunteshaus.de/push.sh

11 lines
173 B
Bash
Raw Normal View History

2022-04-08 18:33:14 +02:00
git add content/news
git commit --amend --no-edit
target="origin"
2022-04-08 18:46:49 +02:00
force="-f"
2022-04-08 18:42:39 +02:00
if [ "$1" = "upstream" ]; then
2022-04-08 18:33:14 +02:00
target=upstream
2022-04-08 18:46:49 +02:00
force=""
2022-04-08 18:33:14 +02:00
fi
2022-04-08 18:46:49 +02:00
git push ${target} ${force}