Git cheatsheet

Published: July 13, 2020

Git cheatsheet

This cheatsheet is a small collection of handy snippets for quick reference in tricky situations. Feel free to suggest edits, propose additions, complain about something, disagree with content or such and the like. Every feedback is a welcome one.

git init Creates new repository

git clone Clone a repository into current working directory

git add <filename>

git commit –m "message describing commit"

git commit -a Commits all edits

git push origin master send master branch to remote repository

git pull Update local repository with master branch

Christoffer Lybekk

Developer under development

Explore more articles with similar tags


Article stats




1 minread time