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