22/03/2022
By Imran M
By Imran M
git checkout --orphan temp
git commit -am "cleaning"
git branch -D main
git branch -m main
git push -f origin main
At times we push the wrong update to the repository. In spite of fixing the issue at a later stage, we just hope that we never have pushed the wrong code. We have a workaround for this. Click here to know How to delete all commit records from Github without deleting the source