Reputation: 5824
I'm trying to set up a software project under Git. The project will be compiled both on Mac and Windows computers. The vast majority of the files are the same in both the Mac and Windows versions, but there are a few cases where I want the following:
File xxx exists in a Mac and a Windows version. I want both versions stored in the Git repository, but on the Mac computer I want to access and modify only the Mac version, and on the Windows computer I want to access and modify only the Windows version.
File yyy exists in the Mac version but is absent in the Windows version. When I use a Mac computer to pull the project from the Git server, I want the file yyy included; but when I use a Windows computer to pull the project from the Git server, I don't want the yyy file.
What is the best approach to this?
Upvotes: 0
Views: 171
Reputation: 7101
Depending on the composition and size of the files, you can either:
Upvotes: 1
Reputation: 97282
Two branches (mergeable), two (different) remotes for clients?
Upvotes: 0