简体   繁体   中英

How do I change the default directory in Git?

My problem is that my "Documents and Settings" folder is on a networked drive which is abysmally slow. Since this is where Git (and most programs) store all of their settings and stuff by default this ends up being a problem since even a simple "mkdir" can take upwards of 30 seconds. How do change Git to store all settings/repos in a diffent location?

You can store repos anywhere, so put them on the local disk.

To set up msys's ~ to be on local disk, answer posted to the proposed duplicate contains batch commands to set up stuff you need. Be careful to copy git global setting between old home and new home.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM