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 Git Basics Getting Started With Git Looking Back on What We've Done

Making changes to source files outside Git

I want to make changes to my project files through an external text editor and then come to Git to commit it will that still keep everything in sync with Git?

For example:

  • I made a project called: HTML_Gold
  • I went into my project file using windows explorer and opened an html file and made some changes.
  • Now I want to make a commit using Git shell.

2 questions:

  • Will this cause any problem in my version control
  • Is this a normal practice

1 Answer

Seth Kroger
Seth Kroger
56,413 Points

Actually yes, that is a fairly normal practice. You do need to add the changes to the staging area with "git add" first before committing. Otherwise this is the way git is used if it's not integrated into your editor/IDE.