I was working on a rails 3 app that I screwed up and needed to start over. At the time I was on a git branch named “skeleton”. I deleted everything in the folder and then started over by reinstalling a new rails app in the same old folder. Then I went to github and deleted the repository. After working on setting up the new app I went to do a git init and found out that git still thinks I am on the old skeleton branch.
How can I strip the old git branch from the current app so that I can run a new git init?
TIA
If you want to remove a branch use:
Where
branch_nameis the name of the branch you wish to delete. Make sure to checkout a new branch before you start as you cannot delete the branch you’re currently on.Here’s the doc page