Skip to content

Instantly share code, notes, and snippets.

@StevenClontz
Last active Sep 20, 2018
Embed
What would you like to do?
git cheatsheet for LaTeX projects
# create a file with this exact text to ignore build files
*.aux
*.fdb_latexmk
*.fls
*.log
*.synctex.gz
# make a new git repo
git init
# after making changes, add your files to staging
git add -A
# commit your files to history
git commit -m "My awesome descriptive commit message"
# push to GitHub or similar
# first make a repo on GitHub and follow its instructions to
# "push an existing repository from the command line"
git push
# get git status
git status
# get git history
git log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment