Last active
September 20, 2018 21:13
-
-
Save StevenClontz/3130c9c0c84b2fa8e245f8dc6d6e5346 to your computer and use it in GitHub Desktop.
git cheatsheet for LaTeX projects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create a file with this exact text to ignore build files | |
*.aux | |
*.fdb_latexmk | |
*.fls | |
*.log | |
*.synctex.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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