A simple question:
How do I stop tracking an entire repository and delete all the local files safely?
I have a remote repository, which, after a few commits, I decide to leave alone. But I also don't want it to clog up my disk space, so I want to wipe it off my local disk.
If the repo was this for example
git clone git://github.com/antirez/redis.git
You can remove the local files by simply deleting the folder
rm -r redis
This will leave the remote files untouched.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.