Git

by Daniel Pimentel — Sun 07 July 2002

Clone

git clone d4n1.org.git

Add

touch foo bar
git add .

Commit

git commit -m 'commit message'

Push

git push origin master

Pull

git pull origin master

Log

git log

Diff

git diff

Branch

git branch development

checkout

git checkout development

Merge

git checkout master
git merge development

Tag

git tag -a v1.0 -m 'Foobar release'
Git
2000-2016 by Daniel Pimentel under GFDL