简体   繁体   中英

How do I open a file in its default program by using the CLI in GitBash on Windows 7?

我目前正在Windows 7上使用GitBash来使用命令行界面,并且非常有兴趣知道如何使用GitBash在其默认程序中打开文件/文档。

You can use start to open a file using its default application. For example:

start some-image.jpg
start some-document.pdf

Start gives me permission issues on my work machine. However the explorer command works for me.

explorer some-image.jpg

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