Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

gitattributes ignored during merge #442

Open
Timothy626 opened this issue Sep 16, 2020 · 0 comments
Open

gitattributes ignored during merge #442

Timothy626 opened this issue Sep 16, 2020 · 0 comments

Comments

@Timothy626
Copy link

I'm tracking a file in both develop and master that I DO NOT want to be overwritten when I do a merge. It's a config file that has to be different in production (master) and qa (develop).

I setup a .gitattributes file (master and develop), added "myfile merge=ours", updated the .git/config accordingly. Doing a standard merge in either direction, master -> develop or develop -> master works as expected. The "myfile" does not get changed, no merge conflicts.

But when I finish a "git flow release", while there are still no conflicts, the develop version of the "myfile" gets overwritten with the master version. It seems to be ignoring the .gitattributes settings.

Checked through the docs thoroughly and don't see anything special that I should be doing.

Any advice would be appreciated!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant