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 Branches Beginning to Branch

Robert Mews
Robert Mews
11,540 Points

Git Checkout?

In the previous Git course, I created a file named file3 and did the git add file3 command. I did not commit this file to my Git repository. When I switched branches using the git checkout foo_feature command, this file followed. Could someone explain?

1 Answer

Hey man, Read the "Description" part of this page. It'll make sense, I swear. Reply if it doesn't.