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

Fwd: Add git ignore as builtin

From
AAAlberto Fanjul Alonso <albertofanjul@gmail.com>
Date
Nov 15, 2014, 11:22 UTC
Message-ID
<CA+mQAOU_UnPuSk0f9d1sUnxBj8M4zEX7bwa4Dw_z_PJV3Lp4LA@mail.gmail.com>
In-Reply-To
<CA+mQAOXPZSv2B8tVfC=4eJ7X_2j8Di4BkuE=z43=U2+VNpdQQg@mail.gmail.com>
After seeing -e option in git config (open config files in editor)
http://git-scm.com/docs/git-config
I decide it's time to propose to incorporate an alias really useful to me
git ignore
The repo is on https://github.com/albfan/git-ignore
basically:
git ignore <whatever> adds <whatever> to .git/info/exclude
and git ignore -e starts an editor to tweak your excludes

by default it operates con exclude file, but it can also work with .gitignore using -i option

I find it invaluable for IDE project files, TODOs, test files...
Next: Ryan Jacobs
Message 1 of 5 in “Fwd: Add git ignore as builtin”
  1. Alberto Fanjul AlonsoNov 15, 2014
  2. Ryan JacobsNov 17, 2014
  3. Jeff KingNov 17, 2014
  4. Junio C HamanoNov 17, 2014
  5. Javier Domingo CansinoNov 23, 2014

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.