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

8.5k Views Asked by At

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.

2

There are 2 best solutions below

1
poke On

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

start some-image.jpg
start some-document.pdf
0
TheHammer On

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

explorer some-image.jpg