GIT Bash modify the default path
1. Right-click the Git Bash icon -> Properties
The system defaults to User C drive path (C: \ Users \ Administrator)
2. Click the shortcut, delete the "target (T)" -cd-to- home , and then the "starting position (S)" are
replaced by the beginning of the path you need
After it follows:
3. Double-click to run Git Bash, to see whether the desired output location. I can see the start of the path has been changed
successfully
######
Error: see other tutorial can be changed to any position, but I do not know whether the version of the reasons or other reasons
There is a problem (open path after using the cd command will change the software to do the installation path) after changing any path
Errors do gymnastics as follows:
删除 -cd-to-home
Modify the starting position D: \ (D drive)
Fixed: After testing if the path specified for the next two (multi-level) directory cd command errors can be avoided
There are other online solution is to modify environment variables, self-view (not tested so no issue)
######
This tutorial reference:
https://www.jianshu.com/p/93cc6b7aa5ec
Under that its main problem encountered blog: (there are links refer to the original view)
我的情况是按照上面的步骤来处理,但仍然是指向的Desktop。
最终在stackoverflow上找到了解决方案:
1. 在Git Bash中找到它的默认路径
echo $HOME
2. 然后在Git Bash中输入设置命令
setx HOME "path/to/.ssh/loc" (I gave D:\project)
最终达到了更改默认路径的目的。