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

Re: [PATCH] init-db: support --import to add all files and commit right after init

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Mar 25, 2009, 02:27 UTC
Message-ID
<fcaeb9bf0903241927h5b4d20b9r30fd67c26e63c6f5@mail.gmail.com>
In-Reply-To
<20090325021458.GY23521@spearce.org>
On Wed, Mar 25, 2009 at 1:14 PM, Shawn O. Pearce <spearce@spearce.org> wrote:
Show 7 quoted lines
> Nguy???n Th??i Ng???c Duy <pclouds@gmail.com> wrote:
>> This is equivalent to "git init;git add .;git commit -q -m blah".
>> I find myself doing that too many times, hence this shortcut.
>
> Why not:
>
>  git config --global alias.init-import '!git init && git add . && git commit -q'
1. less setup on new machine
2. fast-import support (not yet though)
-- 
Duy
Previous: Shawn O. PearceNext: Johannes Schindelin
Message 3 of 10 in “init-db: support --import to add all files and commit right after init”
  1. init-db: support --import to add all files and commit right after initNguyễn Thái Ngọc Duy, Mar 25, 2009
  2. Shawn O. PearceMar 25, 2009
  3. Nguyen Thai Ngoc DuyMar 25, 2009
  4. Johannes SchindelinMar 25, 2009
  5. Nguyen Thai Ngoc DuyMar 25, 2009
  6. Jeff KingMar 25, 2009
  7. Nguyen Thai Ngoc DuyMar 25, 2009
  8. Jeff KingMar 25, 2009
  9. Miles BaderMar 31, 2009
  10. Jeff KingMar 31, 2009

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.