From 2c6bb874338fdca3e96b79c0269c847fb80af5ab Mon Sep 17 00:00:00 2001 From: dhruv Date: Sat, 1 Nov 2025 11:18:25 +0530 Subject: [PATCH] Update gitea_client_uploader_comands.sh --- gitea_client_uploader_comands.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gitea_client_uploader_comands.sh b/gitea_client_uploader_comands.sh index 6dfe214..e2dfbe1 100644 --- a/gitea_client_uploader_comands.sh +++ b/gitea_client_uploader_comands.sh @@ -1,5 +1,4 @@ - git init git add -A git commit -m "first commit" @@ -77,4 +76,8 @@ git push --force-with-lease origin main # force update the GitEa's Repositories # tracked by git ( log the files stored in the local git ) -git ls-files \ No newline at end of file +git ls-files + +#Delete last commit from Gitea branch: +git reset --hard HEAD~1 # undo the git changes +git push --force-with-lease origin main # update he git to GitEa backend