Skip to content

Instantly share code, notes, and snippets.

@StevenClontz
Last active September 20, 2018 21:13
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save StevenClontz/3130c9c0c84b2fa8e245f8dc6d6e5346 to your computer and use it in GitHub Desktop.
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