I have a config file in my home directory that I wish to keep versioned. I created a git repos, and put the config file there, and then symlinked it into my home directory. However, the software that uses this config file sometimes writes things into it, and it does it by writing a new file, then renaming both.
If your library does this, then the end result is that my config file is no longer versioned. It's very frustrating.
https://www.reddit.com/r/programming/comments/g76xmk/safer_2_a_better_safer_file_writer/fofsybh/