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.