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

Re: Gitattributes file is not respected when switching between branches

From
Torsten Bögershausen <tboegi@web.de>
Date
Sep 18, 2016, 19:31 UTC
Message-ID
<beaf2e9c-70c9-b80a-b201-aeed830f8807@web.de>
In-Reply-To
<CANYoZJnB81rEGNAjGj6jOscmdSW_niSy6jRP6acw2xB4ssX8xA@mail.gmail.com>
On 16.09.16 08:51, Виталий Ищенко wrote:
> Sorry for delay.
> 
No problem about the delay.
(And please no top-posting)
If you say
> ".gitattributes" indeed is not present in "master", but this is intentionally
then nobody has (to my knowledge) thought about this situation/workflow yet.

The short version: Git is designed to have the same .gitattributes in different branches. At least not in the long run.

A typical use case is to create a repo, adjust the .gitattributes and keep this in all branches.

 
Previous: Виталий Ищенко
Message 5 of 5 in “Gitattributes file is not respected when switching between branches”
  1. Виталий ИщенкоSep 12, 2016
  2. Torsten BögershausenSep 12, 2016
  3. Torsten BögershausenSep 12, 2016
  4. Виталий ИщенкоSep 16, 2016
  5. Torsten BögershausenSep 18, 2016

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.