This file contains 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
#Checkout | |
git checkout --orphan <LATEST BRANCH> | |
#Add all the files | |
git add -A | |
#Commit the changes | |
git commit -am <COMMIT MESSAGE> | |
#Delete the branch |
This file contains 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
// Remove the history from repository | |
rm -rf .git | |
// initialise your new Git repo | |
git init | |
// places files in a special staging area | |
git add . | |
// make a commit with message | |
git commit -m "Initial commit" |