I am using git for my thesis. The project contains text files (code, *.tex) and binary files (figures).
- text files are tracked by the git repository
- binary files are not tracked by git, but reside in the same directory.
I am working on my desktop and on a laptop, sometimes synced via ssh, sometimes via an USB drive. My problem is how to handle this syncing properly. If I had only code I would use git pull, git push or git bundle. The problem is that this will not include the binary files (i.e., a figure I made on my desktop will not be transfered to the laptop, so latex on the laptop fails because a figure is missing). Therefore I currently use rsync for synchonizing, but then I loose many advantages of using git.
What I would like to do:
- tell
git"here are some binary files, please include them when doing agit pushorgit pullorgit bundle - since this are binary files I do NOT want them to be tracked, i.e., I only want the current state to be copied, NOT the changes
So far I could only come up with workaround solutions (building a shell script around git for code and rsync for syncing the binary files). But this makes working awkward, so I am looking for a more optimal solution.
Thanks, Simon