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

Re: How stop tracking a file?

From
JMjeff millar <wa1hco@adelphia.net>
Date
May 22, 2005, 18:29 UTC
Message-ID
<4290CF85.5060105@adelphia.net>
In-Reply-To
<7vacmnfapv.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
Show 12 quoted lines
>    jm> cg-rm does two things
>    jm>    rm -f "$@"
>    jm>    git-update-cache --remove -- "$@"
>
>I do not do Porcelain, but something along the following lines
>should work:
>
>    for path
>    do
>        git-update-cache --force-remove "$path"
>    done
>

Seems a bit more difficult... [jeff@Desk gsmc-1.1]$ git-update-cache --force-remove main.o [jeff@Desk gsmc-1.1]$ cg-diff

Index: main.o
===================================================================
Binary files a5d1a55e0818ab11b71fee01bcd9053c4ecc65a6/main.o 
(mode:100644) and /dev/null (tree:uncommitted) differ
[jeff@Desk gsmc-1.1]$ cg-commit
Refusing to make an empty commit - the tree was not modified
since the previous commit. If you really want to make the
commit, do: commit-tree `tree-id` -p `parent-id`
A picky porcelain problem?
Previous: Junio C HamanoNext: Petr Baudis
Message 3 of 4 in “How stop tracking a file?”
  1. jeff millarMay 22, 2005
  2. Junio C HamanoMay 22, 2005
  3. jeff millarMay 22, 2005
  4. Petr BaudisJun 4, 2005

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.