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

Re: [gitgitgadget/git] Adding git-ignore command, tests, and documentation. (#264)

From
Thurston Stone <tstone2077@protonmail.com>
Date
Jul 17, 2019, 17:15 UTC
Message-ID
<-_9xfW9lD1t4z4qkcMoJ5Jb9gmzayauqKOPDIYIQO4dJQzc-RoVWTNOi9-OsXDzrdhVJPWoRYIa5d0zqIsHBoNzMSuw1_jauUcEaGwIairU=@protonmail.com>
In-Reply-To
<YmOpqT5Q4a9QdU5RJmIbisRhQMnkcZt7GFT7E0xH4cqAWr0mEiHlYzLmpI8eKSPPQDZmQRmfUzdzqxDSb-iBwYhFHtJ6edCFb8I05ld0vFM=@protonmail.com>
my mistake, my last email should have read:
$ cd path/to/the
 ... work in that deep directory ...
 ... realize that file.txt in that directory needs ignoring ...
 ... know relative path of both desired ignore file and cwd ...
$ echo path/to/the/file.txt > ../../../.gitignore
     ... or with this script ...
--CORRECTION--
$ git ignore file.txt
Previous: Thurston Stone
Message 2 of 2 in “Re: [gitgitgadget/git] Adding git-ignore command, tests, and documentation. (#264)”
  1. Thurston StoneJul 17, 2019
  2. Thurston StoneJul 17, 2019

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.