- Install git for your OS https://git-scm.com/downloads
- Sign in to git
git config --global user.name "Your Name"
git config --global user.email "Your E-Mail"
- Set directory
cd ~/Desktop - Clone Geometry 2020 Repository
git clone https://github.com/SupposeNot/Geometry2020.git
- Set directory
cd ~/Desktop/Geometry2020 - Pull latest changes to repository
git pull - Make changes to the tex file
- Add changes to the commit
git add Summary\ of\ Geometry.tex - Commit with useful message
git commit -m "Added Section 1.1" - Push your changes to the repository
git push
- Use tab to autofill file names
- If you get stuck in VIM press escape key and type
:q - Read the error messages. Git will tell you what to do
- Run
git statusanytime to see changes to the repository - Only run
git cloneonce!!! - If you forget to pull before you make changes just add and commit changes then run
git pull. Git will automatically merge files. - If you get lost check out a basics tutorial, like this one https://www.freecodecamp.org/news/learn-the-basics-of-git-in-under-10-minutes-da548267cc91/