English subtitles

← Initializing a Repository Solution - How to Use Git and GitHub

Get Embed Code
5 Languages

Showing Revision 3 created 05/25/2016 by Udacity Robot.

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