Standalone HTML page that organizes Git's commands by what they affect. Built as I was learning git and trying to understand it. It's proved useful to others in the same endeavor.
- Development by Andrew Peterson,  NDP Software NDP Software
- French translation by Bernard Opic
- Simplified Chinese translation by acecode
- Improve Simplified Chinese translation by  rebornsick rebornsick
- Traditional Chinese translation by  Hsins Hsins
- Bug fix by  GerjanOnline GerjanOnline
- Spanish translation by  sminutoli sminutoli
- Korean translation by  ujuc ujuc
- Italian translation by  antoniopantaleo antoniopantaleo
- Vietnamese translation by  trgiangdo trgiangdo
- Portuguese translation by  HenriqueAJNB HenriqueAJNB
- Russian translation by  vistar vistar
Comments and pull requests welcome.
- Determine the 2-letter language code (ISO 639-1). See the existing files in git-cheatsheet/lang.
- Create a new JSON file with the name of the code in git-cheatsheet/lang. Choose one of the other languages as a starting point.
- Write your translation. Use the exact identical property keys in the JSON structure. Only change the values.
- Add a link for users to choose the translation. In git-cheatsheet.html, insert (alphabetically) a new line that looks like:
<a class="lang" data-lang="vi" data-docs="Vietnamese translation by trgiangdo">vn</a>
- Add your name to the README.md above.
- Test manually
- Create a pull request. Give me a couple days to reply, but then feel free to write.
- Once it's merged, tell people about it.
Keep the PR restricted to changes related to the translation.
Files are in the src folder. To see it locally:
- yarn installto install dependencies
- yarn testto run the tests
- yarn buildto transpile.
- yarn startor- yarn start-dockerto serve. The latter uses a Docker container.
- Open http://127.0.0.1:8080/git-cheatsheet.htmlto view the page
CI is on Github Actions.
Use FTP to upload to NDP Software
Exceptions caught and logged on Rollbar (private).
rsync --progress -e "ssh -i ~/.ssh/LightsailDefaultKey-us-west-2.pem" ./git-cheatsheet.htm bitnami@52.36.92.53:/home/bitnami/htdocs/
rsync --progress -e "ssh -i ~/.ssh/LightsailDefaultKey-us-west-2.pem" ./git-cheatsheet.html bitnami@52.36.92.53:/home/bitnami/htdocs/
rsync -avcz --progress -e "ssh -i ~/.ssh/LightsailDefaultKey-us-west-2.pem" ./git-cheatsheet bitnami@52.36.92.53:/home/bitnami/htdocs/
rsync -avcz --progress -e "ssh -i ~/.ssh/LightsailDefaultKey-us-west-2.pem" ../agile_methods bitnami@52.36.92.53:/home/bitnami/htdocs/
You can navigate over different "locations" and commands with the mouse, arrow keys, or vi-like keystrokes.
It's pretty silly, actually. I had a little SEO juice from a couple other real cheat sheets, so I thought I'd just leverage that term. In retrospect, I think this was an okay tactic, as it brought people to the page.
If you like this and would like me to do more intereactions like this, send me an email... or patreon.com/ndp
Copyright (c) 2013-2024 Andrew J. Peterson, NDP Software
