rm -rf .git
rm -rf .git*
/* Remove Git tracking from an entire folder/directory */ cd project-name // Navigate to the project directory rm -rf .git // Remove git tracking
git rm -r --cached <folder> git commit -m "Removed Folder" git push origin master
winpty curl -X DELETE -H 'Authorization: token [GENERATED_TOKEN]' https://api.github.com/repos/[USER]/[REPO_NAME] # follow steps here to generate token: https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line
rm -rf .git -r => Remove directories and there contents recursively. -f => Ignore nonexistent files and arguments, never prompt for more info run rm --help
git init git add README.md git commit -m "first commit" git remote add origin https://github.com/Leonuch/flex.git git push -u origin master