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

Re: Git allow to unconditionaly remove files on other developer host

From
KKES <kes-kes@yandex.ru>
Date
Jan 6, 2018, 12:06 UTC
Message-ID
<676071515240382@web58g.yandex.ru>
In-Reply-To
<c09e2447-a528-9da1-9936-9b0ebfdddd78@kdbg.org>
> This happens *only* if the other developers also have somefile mentioned
> in their .gitignore.
It will be mentioned, because of I can add/push, wait developers pull,  add/push
I can do this because I was angry or was fired. So this is my last "surprise" for others ))
>>  EXPECTED: git should warn about that content will be replaced and do not pull/checkout until we force pull/checkout
>
> If somefile is *not* mentioned in their .gitignore, the file is not
> removed and there is a warning.
As you can see the file is not just ignored in my case it is important because added to the repo

we can think of some sort of default configuration stored in repo. But added to ignore file because developers do not want to track local changes (every developer has own options when configure local instance of application)

it *this very important* to not lose these options while switching between branches or pull from remote.
And I do not expect and do not want to get such "surprises" from anyone
Previous: Konstantin Khomoutov
Message 4 of 4 in “Git allow to unconditionaly remove files on other developer host”
  1. KESApr 15, 2017
  2. Johannes SixtApr 15, 2017
  3. Konstantin KhomoutovApr 15, 2017
  4. KESJan 6, 2018

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.