How to delete or change directory of a cloned git repository on a local computer

Just move it :)

command line :

move "C:\Documents and Setings\$USER\project" C:\project

or just drag the folder in explorer.

Git won't care where it is - all the metadata for the repository is inside a folder called .git inside your project folder.


You can just delete that directory that you cloned the repo into, and re-clone it wherever you'd like.


You could try this via SSH: rm -rf foldernamehere