Introducing literate dotfiles (2018)
writepermission.com
writepermission.com
It's a bit of a hack but what I do is commit the tangled output as well. That way I can directly edit the tangled output if I need to and magit will remind me that I've got changes to port to the original source. Or set the file read-only with :tangle-mode[1].
[1] https://orgmode.org/manual/tangle_002dmode.html#tangle_002dm...