I want to have three copies of a git repository:
- A copy on my own laptop
- A copy on an external server
- A copy on GitHub
The repository will include several GB of binary files, in addition to code and documentation. I'd like to keep everything on my laptop and on the external server, but I would like to exclude the binary files from GitHub since they are both confidential and large. How can I do this?
If it matters, the binary file contents won't change but more binary files will be added in the future, and it's possible that some binary files may be removed. I need the binary files to stay synced between my laptop and the server, and I want to keep backups in case anything is accidentally removed. The best solution I have so far is to add the binary files to .gitignore, use a second program to sync only these files between my laptop and the server, and use a third program to make versioned backups of only these files on the server.