I'm currently using GitBash on Windows 7 to play around with the command line interface and would be very interested to know how to use GitBash to open a file/document in its default program.
Asked
Active
Viewed 7,915 times
2 Answers
31
You can use start
to open a file using its default application. For example:
start some-image.jpg
start some-document.pdf

poke
- 369,085
- 72
- 557
- 602
-
1On Windows 10 this just opens the command prompt for me. – Adam Burke Jul 01 '22 at 09:00
9
Start gives me permission issues on my work machine. However the explorer
command works for me.
explorer some-image.jpg

TheHammer
- 190
- 1
- 4