split LaTeX and git setup authored by Malin Freeborn's avatar Malin Freeborn
......@@ -92,42 +92,6 @@ I don't have a Mac to test on, but this will probably work with `homebrew`.
If you want to install just the LaTeX packages you'll need with `tlmgr`, clone the [config repo](https://gitlab.com/bindrpg/config), and run `./Docker/tlmgrDeps.sh`.
# Learning Git
---
If you modify a weapon and someone else adds a spell, nobody wants to deal with merging those two ideas together. Git puts your changes together for you.
If you have an idea, but you want to show it to someone before committing to it, git lets you make a copy of the project, then give someone your copy and your new ideas. They can then make changes before putting it into the book.
Git gives you a lot of toys, but beginners will only need a few:
Make a new branch to play with, and name it something (in this example, your username).
```bash
git switch -c $USER
```
You can mess around here, making the changes you want.
But if you don't like your changes, just reset everything:
```bash
git reset --hard HEAD
```
Tell git you've made changes:
```bash
git add -A
```
Explain what you did in a few words, e.g. `add rule for half-swording`, with a commit message:
```bash
git commit
```
Push your changes to gitlab, so everyone sees them.
```bash
git push origin $USER
```
Remember you are pushing your own branch, so replace 'new' with whatever name you gave your branch.
If you're not familiar with `git`, there are some setup instructions on the [Basic Git](Basic-Git) page.