Lybekk

Git cheatsheet

(updated )

Commands

CommandDescription
git initInitializes/creates a new repository
git cloneClone a repository into current working directory
git statusView changes since last commit
git status -uView untracked files, expanding subdirectories
git add <filename>Add file to commit
git commit -m "message describing commit"Skip editor, directly adding commit message
git commit -aCommit all edits
git push origin mastersend master branch to remote repository
git pullUpdate local repository with master branch