Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Development Tools Introduction to Git First Commits Git Overview

Does one person working on a local machine get any benefit from Git's distributed feature?

How would a person working alone be able to take advantage of the "distributed" feature of Git?

1 Answer

18,785 Points

I haven't been through this particular course, so I can't speak specifically in that regard. However, I don't believe it would make any meaningful impact on a single programmer working alone.

The strength of a distributed model is that instead of having one central repository that everyone sends changes to, you instead have each committer with their own repository that has the whole commit history. The changes are just recorded to each person's local repository, no need to connect with a remote repository.

If you're working alone your local repository is effectively the central repository, since there's no one else working on the project.