## Mittwoch, 2. Januar 2013

### Using TeXstudio with git

I'm currently in the process of writing the actual document, my study thesis. Per custom, it is written in $\mathrm{L\!\!^{{}_{\scriptstyle A}} \!\!\!\!\!\;\; T\!_{\displaystyle E} \! X}$. The LaTeX editors for Windows are as bad as they come, but TeXstudio certainly isn't the worst. It also comes with a neat feature that commits your work to a SVN repository whenever you save your files.

Now, I don't use SVN, I use git instead. So I followed this advice on teaching TeXstudio to use git. First, open your command settings at Options → Configure TeXstudio → Commands → SVN and change the values for SVN and SVNADMIN to 'git'.

Then open bash and tell git to use the command 'ci':
git config --global alias.ci "commit"
There you go. Now you can enable auto-commit at Options → Configure TeXstudio → SVN.
Be advised that these automatic checkins will clutter your repository. It may be a good idea to switch to a different branch before working with TeXstudio and pick/squash the changes to the master branch after you are done.