From 151cd145261f477c4227b0ce71db2f4b69fe2a3b Mon Sep 17 00:00:00 2001 From: teldra Date: Sun, 26 Jun 2022 18:19:22 +0200 Subject: [PATCH] small fixes --- push.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/push.sh b/push.sh index d51a9a5..d1e116d 100755 --- a/push.sh +++ b/push.sh @@ -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