git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: What does this output of git supposed to mean ?

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Jun 5, 2017, 23:10 UTC
Message-ID
<20170605231058.pgb4fgfb4z45bzmk@genre.crustytoothpaste.net>
In-Reply-To
<1496671452.4809.2.camel@gmail.com>
On Mon, Jun 05, 2017 at 07:34:12PM +0530, Kaartic Sivaraam wrote:
Show 13 quoted lines
> Hello all,
> 
> I noticed a weird output by git when trying to run 'git status' on a
> newly initialized git repository. It prints the following,
> 
> > On branch master
> > 
> > Initial commit
> > 
> > nothing to commit (create/copy files and use "git add" to track)
> 
> 
> What's that "Initial commit" supposed to mean?

It just means that it will be the first commit in the repository. It's a helpful reminder that some operations (such as git log) won't work as expected. In addition, many people want to commit certain files (such as .gitignore) in their initial commit, and this may jog their memory.

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
https://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: https://keybase.io/bk2204
Previous: Kaartic SivaraamNext: Stefan Beller
Message 2 of 17 in “What does this output of git supposed to mean ?”
  1. Kaartic SivaraamJun 5, 2017
  2. brian m. carlsonJun 5, 2017
  3. Stefan BellerJun 5, 2017
  4. Junio C HamanoJun 6, 2017
  5. brian m. carlsonJun 6, 2017
  6. Samuel LijinJun 6, 2017
  7. Junio C HamanoJun 6, 2017
  8. DavidJun 6, 2017
  9. Philip OakleyJun 6, 2017
  10. SZEDER GáborJun 6, 2017
  11. Jeff KingJun 6, 2017
  12. Jeff KingJun 6, 2017
  13. Junio C HamanoJun 6, 2017
  14. Kaartic SivaraamJun 6, 2017
  15. Philip OakleyJun 6, 2017
  16. Kaartic SivaraamJun 7, 2017
  17. Philip OakleyJun 7, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.