And russel borogove gave me the exact answer i needed for my problem, i am happy. I think this is not a duplicate of git undo last commit as it asks how to delete any commit from a branch I also think non of the answers actually address this question How do i create a regular expression to match a word at the beginning of a string We are looking to match stop at the beginning of a string and anything can follow it I think you need to push a revert commit
So pull from github again, including the commit you want to revert, then use git revert and push the result If you don't care about other people's clones of your github repository being broken, you can also delete and recreate the master branch on github after your reset Git clone will clone remote branch into local Is there any way to clone a specific branch by myself without switching branches on the remote repository? In my project folder i created a venv folder I went one level up like suggeste.
A lengthy manual method is
OPEN