Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Kris Byrum
Kris Byrum
32,636 Points

I give up on getting Git to interact with Sublime Text

Is there any good way to get a hold of one of the teachers at Treehouse that may be able to help me out?

I've tried everything i could read and asked a ton of places. So far its not working.

Thanks

8 Answers

Ethan Lowry
PLUS
Ethan Lowry
Courses Plus Student 7,323 Points

What exactly is it you're trying to do here? Do you want to use Git commands directly from within Sublime Text? If so, have you installed Sublime Package Manager and used that to install the 'Git' package that allows you to do so?

Kris Byrum
Kris Byrum
32,636 Points

i'd like to either use Git commands within Sublime OR what might be good is to access Sublime in Git similar to either nano README or notepad README.

I've already read a ton of other forums posts, how-to and such about it. I've tried a as many as I could including adding the Sublime Package Manager for Git. However, when I attempt to grab the status I get an error message about the executable.

In Git the error message I get is that subl does not exist.

i'm newer using all of these programs, however I catch on quick. I still can't figure it out and I'm looking for detailed instructions on how to install and config them for use.

Bob Sutherton
Bob Sutherton
20,160 Points

Did you ever figure this out?

Kris Byrum
Kris Byrum
32,636 Points

Yeah. You need to add a Dos Key

Paste the following code into the command line. Just switch the path to the correct path to the .exe file if yours is in a different place.

Also, if you're using Sublime text 3, make sure you update the path to that instead of 2.

doskey subl="C:\Program Files\Sublime Text 2\sublime_text.exe"

Kris Byrum
Kris Byrum
32,636 Points

Interesting. Here is where i got the code from.

http://wesbos.com/subl-on-windows/

Maybe try using the comand prompt instead of the Git one. Not sure if that will matter.

Also, double check the path to make sure you didn't put it someplace else by mistake when installing it.

Bob Sutherton
Bob Sutherton
20,160 Points

Thanks I will give it a try!

Kris Byrum
Kris Byrum
32,636 Points

It should work if you use the command prompt window. I use Cmdr as Treehouse recommended and it worked for me.

Bob Sutherton
Bob Sutherton
20,160 Points

At least it is popping up in the Windows command line. I am still trying to get it to work in GIT bash. But this is encouraging.