When creating a new git repository with 40,000 things, so I have to uncomment each in the COMMIT file?

Okay, I am confused! I have a directory with ~40,000 files, and I created a git repository. I add all the files with:

git add .

  • Remove a merge commit, keeping current changes
  • Git (assembla) - Syntax to refer to a previous changeset in a commit message
  • Why doesn't git commit -a add new files?
  • Why Git is not allowing me to commit even after configuration?
  • Handling git on a shared user account
  • Find date for not dated commit?
  • then when I type “git commit” I get a 40,000 line text file that opens, and EVERY line is commented. If I close this file without uncommenting anything, it does not perform any commit at all. However, if I uncomment just a single line from this file, it SEEMS to commit all 40,000 files. Is this correct, this seems confusing?

  • Reset to the very first commit in Git?
  • Why is there a staging process in git?
  • How often to comment when committing code?
  • GitHub setup for freelance-employer use case?
  • Why Gerrit is unable to create branch by itself?
  • AngularJS & PHP: upload my app on several servers after changes
  • 3 Solutions collect form web for “When creating a new git repository with 40,000 things, so I have to uncomment each in the COMMIT file?”

    The comments are just showing you what files are being committed.

    You need to add a commit message; that’s what the editor is prompting you for. Try typing “My first commit” and saving.

    Use git commit -m "commit message" when you have just a single line of commit message ( which I feel you mostly should)

    Omit the -m if you have a large message and you want git to present you your editor so that you can type the message. Ignore the comments ( they are there to help you see what you are committing), just enter your message, save and quit your editor to commit.

    Correct; git doesn’t care about the contents of the commit message, as long as there is something uncommented. It doesn’t check that your message has anything to do with the files you committed.

    Git Baby is a git and github fan, let's start git clone.