And russel borogove gave me the exact answer i needed for my problem, i am happy. 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 I am using the following code which is working on local machine, but when i tried the same code on server it throws me error a connection attempt failed because the.
Who is A'ja Wilson and how tall is she? | The US Sun
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
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? How do i easily undo a git rebase A lengthy manual method is
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