Visual Studio code, for example, has extensions for Latex. You can write the latex src in VS Code, compile and preview it. And since VSCode also supports git you can integrate your latex project and the repository in one workspace.
I'm actually using VS Code for the Haskell project I mentioned in my submission, so I just finished figuring out how git works with VSC, this might be a good solution for me