Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Will deleting a local git repo affect the remote repo?

I did a git clone to my computer. After that I realized that I cloned the project to wrong directory. What I want to do now is delete the project folder from my computer and do a git clone to another directory.

If I just delete the folder, will it affect the remote repository?

Any other better way to do?

like image 591
nikmin Avatar asked Jan 21 '26 11:01

nikmin


1 Answers

You can just move the directory to where you actually want it. Moving it, or deleting it, will not impact the remote repository.

like image 141
Arne Brasseur Avatar answered Jan 23 '26 05:01

Arne Brasseur



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!