I wrote a post about how to open NotePad++ from the bash prompt a few years ago but I recently made the switch to using Sublime Text 2 as my standard text editor and had to figure out how to do the same thing with Sublime. It was surprisingly difficult to find it on Google.
1. Create a text file called subl (with no extension) with the following content:
#!/bin/sh "C:\Program Files\Sublime Text 2\sublime_text.exe" $1 &
2. copy it into the C:\Program Files (x86)\Git\bin folder.
The first line indicates that this is a shell script. The first part of the second line is the path to the Sublime exe. The $1 parameter passes in any parameters so that you can use it like this from the bash prompt (command line) to open a file:
to open the current folder.
The last parameter & indicates that it should open Sublime in the background so that you can continue using the command prompt.