繁体   English   中英

在Git for windows“git bash”中,如何以Windows路径格式“打印工作目录”,可以使用cmd和Windows资源管理器吗?

[英]In Git for windows “git bash”, how to “print working directory” in Windows path format that is usable by cmd and Windows explorer?

在Windows上使用Git for Windows“git bash”时,如何方便地在Windows路径表示中打印工作目录,例如

D:\foo\bar

类似于使用'pwd'获取Unix表示

/d/foo/bar/

这样路径可以被Windows资源管理器和cmd控制台读取?

在Git Bash中:

$ cmd //c cd
C:\Program Files\Git

注意双斜线。 对于正斜杠,如评论中所述:

$ pwd -W
C:/Program Files/Git

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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