Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Development Tools

Bob Sutherton
Bob Sutherton
20,160 Points

How to GIT Sublime Text 3?

I am on a windows computer and I have GIT bash installed as per the GIT course. I also recently bought a license for Sublime Text 3 and would like to make it my text editor when I use GIT instead of notepad.

I have been through several tutorials but they don't seem to work. The subl command is still not recognized.

Can someone give me a lead on this? The tutorial on the Github site is for Sublime Text 2 so I am wondering if that makes a difference.

Thanks.

3 Answers

Chris Shaw
Chris Shaw
26,650 Points

Hi Brock,

Your question is slightly confusing as GIT and ST3 are two completely different things but lets give this a ago shall we, in order to use subl as a command on Windows which is slightly different you need to add an entry into your environment variables which allows cmd to properly respond to executable requests.

See the below link for information about this.

https://scotch.io/tutorials/open-sublime-text-from-the-command-line-using-subl-exe-windows

Additionally you might want to check out the following links for integrating GIT within Sublime Text.

Bob Sutherton
Bob Sutherton
20,160 Points

Thanks. I will give these a try and let you know how I come out. Sorry for the confusing headline.

Bob Sutherton
Bob Sutherton
20,160 Points

Do you know if the command line and the git bash are the same thing as I follow along with the Scotch article? They look the same to me.

Bob Sutherton
Bob Sutherton
20,160 Points

Okay I just went through the Scotch.io article and it didn't work. He says to add something to the end of a USER VARIABLE called PATH. But the only USER VARIABLES i see are called TEMP and TMP. There isn't a PATH user variable for me to add this to the end of. The rest of the instructions I was able to follow just not this final part.

Bob Sutherton
Bob Sutherton
20,160 Points

I tried adding the PATH user variable but didn't know what to set the variable value to. Things look different from the tutorial.