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

Karina Torres
Karina Torres
1,171 Points

Too many commits

I have been working on a new repository today on a pc running Ubuntu while using the built in terminal. I noticed I have 12 commits. If I continue working on it, will I eventually have 500 commits? How can I bring that number down to one? It's really frustrating and I've deleted many repositories already trying to figure it out.

1 Answer

Hi Karina,

The general rule is commit small and commit often. Somethings I work on will have 5-10 commits and it could be as simple is adding comments to the code, adjusting the readme etc. There is nothing wrong with having a lot of commits as long as it makes sense.

Also pushing at the end of the day is a good thing to get in a habit of or for example during a storm where power may go out, it maybe worth while to push after every commit.