18

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 Answers2

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
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