Skip to content

Instantly share code, notes, and snippets.

@ozgurkalan
Created February 18, 2018 18:47
Show Gist options
  • Save ozgurkalan/ba6f21f276d7722a3a642d53c0291a4d to your computer and use it in GitHub Desktop.
Save ozgurkalan/ba6f21f276d7722a3a642d53c0291a4d to your computer and use it in GitHub Desktop.
Git start-over and clean everything backwards
# detele .git file and start over with initial commit
# copy and paste in terminal
# or include it in Terminal.app with a function...
rm -rf .git
git init
git add .
git commit -am "initial commit"
echo "git restarted..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment