From febc92910a44d09f15e273d57934f75cf49ee263 Mon Sep 17 00:00:00 2001 From: Hadeed Ahmad Date: Mon, 21 Aug 2023 23:58:28 +0500 Subject: [PATCH] Make force push work as expected --- .forgejo/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 0ab7229..01f5939 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -18,5 +18,5 @@ jobs: shell: sh - name: Deploy - run: ssh -i ~/.ssh/staging.key -o StrictHostKeyChecking=no hadeed@hadeedahmad.xyz 'cd nginx/www; git pull' + run: ssh -i ~/.ssh/staging.key -o StrictHostKeyChecking=no hadeed@hadeedahmad.xyz 'cd nginx/www; git fetch; git reset --hard origin/main' shell: sh