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

Development Tools

Nikia Shaw
Nikia Shaw
4,266 Points

Git on Windows using Sublime Text 3 Editor

Hi there,

In the video on installing Git on Windows it mentions having to use notepad as the text editor to open files through the Git Bash. Is there a way to use Sublime Text 3 instead? I've seen online where people suggested creating a .bash_profile file in Sublime and aliasing the subl command like this:

alias subl="/c/Program\ Files/Sublime\ Text\ 2/sublime_text.exe"

I tried this, changing /Sublime\ Text\ 2 to /Sublime\ Text\ 3 and saved the file in my $HOME folder but unfortunately it didn't work. Does anyone know another way? I'm on Windows 7.

Thanks for reading.

Nikia

2 Answers

Nikia Shaw
Nikia Shaw
4,266 Points

Thank you so much this worked perfectly!