how to remove git repository code example

Example 1: remove git from project

rm -rf .git*

Example 2: delete git repository command line

rm -rf .git

Example 3: delete git

rm -rf .git

Example 4: delete a github repository using bash

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

Example 5: delete git

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

Tags:

Css Example