In my research project, I have code files and a Markdown file called journal.md
where I write all my thoughts, meeting notes, etc. I have different branches that allow me to work on different parts of the project without affecting the rest. I would like the journal file to be the same on every branch: I want it to contain everything I wrote in it so far, regardless of the branch that was checked out when I wrote these things. I can think of two ways to do that, but they have big drawbacks:
- do not track the journal.md file: the issue is that I would like this file to be saved on Github with the rest, so it's backed up and I can pull it if I ever work from another machine
- get the most recent version of the journal.md file whenever I change branches (e.g. by checking it out from the branch where I made the latest changes): that's a pain and I will definitely forget to do so
Is there a better way to achieve what I want?