Delete all Git commits

For some reason or another, there may come a time when you want to completely remove all previous commits to start afresh from a Git repository without wanting to delete and recreate it. The following are the instructions to keep the files but remove all commits history. Change to the repository directory. Checkout the current code to a new branch because you cannot delete the branch you are on. Add all the files.

Continue reading

Developers all over are familiar with the various Version Control systems available. Most developers would have used SVN, Git or Visual SourceSafe over the years at work or personally. The most popular Version Control service, GitHub has thousands of users and repositories available. Just ask yourself if Made a change to code, realised it was a mistake and wanted to revert back? Lost code or had a backup that was too old?

Continue reading

Author's picture

Vicknesh Suppramaniam

Gamer, Writer, Evil GM, Tinkerer, Does IT stuff too

All round geek

Malaysia