How to delete my repository on Git using command line?

53,002

Solution 1

For local repo, run

rm -r .git

You may not delete a repo remotely to github via command line.

Solution 2

try

rm -r .git

from the root of the repository.

Share:
53,002
Sundararajan KS
Author by

Sundararajan KS

Updated on August 24, 2020

Comments

  • Sundararajan KS
    Sundararajan KS over 3 years

    Possible Duplicate:
    How to fully delete a git repository created with init?

    I have a test repository on git and I want to delete it using command line. I found that git rm <file> deleted the files within the repository and not the repository itself. Any one can help here?

  • Sundararajan KS
    Sundararajan KS over 11 years
    I want to delete the repo present on github using commandline
  • tback
    tback over 11 years
    This isn't possible as linquize pointed out already.
  • Revolucion for Monica
    Revolucion for Monica almost 7 years
    Thank you for your answer. What do you mean with You may not delete a repo remotely to github via command line. ? We shouldn't delete the repository locally first ? Or on GitHub first ?