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

Jaime Reynoso
Jaime Reynoso
5,842 Points

I have a question.

Lets say I'm working on a website and im building it on sublime text 2. Now I want to use git but how do you commit changes that were made on an application like sublime text 2? We used nano, but can you use commits from outside applications

1 Answer

Tommy Morgan
STAFF
Tommy Morgan
Treehouse Guest Teacher

Hey Jaime Reynoso -

Do you mean use ST2 to edit your commit messages? There are a couple of different ways you can do this:

1) Use a ST2 plugin for Git. A lot of extensible text editors have plugins to help you interact with Git without ever leaving the editor, and ST2 is no exception. The plugin I've used before is sublime-text-git, which seems to be the community standard. It will give you ST2 commands you can use to view your repo status, add/remove files from the staging area, commit changes, view the log, and more.

2) Change the default editor in Git directly. This option will make ST2 your default editor when you run commands like git commit from the console. GitHub has some succinct directions.