Git-Bash的文件映射
2021年2月28日小于 1 分钟
When I was a little kid, I was really scared of the dark. But then I came to understand, dark just means the absence of photons in the visible wavelength 400 to 700 nanometers. Then I thought, well it's really silly to be afraid of a lack of photons. Then I wasn't afraid of the dark anymore after that. — Elon Musk
git Bash的安装目录(Git安装目录)对应的是
cd path/to/install/Git/
在我的电脑上就是
cd 'C:\Program Files\Git'
而在git bash中虚拟以后,就映射到了 '/'
# path/to/install/Git/ <==> 'C:\Program Files\Git' <==> '/'
即您可以在Git-Bash中直接使用命令
cd /