Initializing a Repository Solution – How to Use Git and GitHub

Initializing a Repository Solution – How to Use Git and GitHub


Git doesn’t any commits when you create the repository. You’ll have to do that yourself. So the correct answer here is zero. Now Git could create an initial commit with everything in the directory, but it doesn’t do that for a couple of reasons. The first is you might not want to commit everything in the directory, and second, you wouldn’t be able to write your own commit message if Git created the commit for you. You can find out what commits are in your repository by running git log. Let’s try that out on this new repository.

Daniel Ostrander

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *