Created
February 18, 2018 18:47
-
-
Save ozgurkalan/ba6f21f276d7722a3a642d53c0291a4d to your computer and use it in GitHub Desktop.
Git start-over and clean everything backwards
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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