The git logotype created by Henrik 'Malesca' Nyh 50hz.se$ cd /git # If you want to share it, use --shared in the next command 50hz.se$ GIT_DIR=project git init home$ cd project home$ git init home$ git add . home$ git commit -a -m 'inital commit' home$ git remote add -f origin 50hz.se:/git/project home$ git push # BRANCHING # View all (local and remote) branches home$ git branch -a # Delete branch home$ git branch -d mac home$ git push origin :heads/mac # CONTRIBUTION # See https://help.github.com/articles/fork-a-repo $ git remote add upstream https://github.com/octocat/Spoon-Knife.git $ git fetch upstream $ git co master && git rebase upstream/master # SVN # Checkout an SVN repo $ git svn clone --preserve-empty-dirs --stdlayout svn+ssh://svn.domain.tld/svn/some-repo # Merge a branch $ git checkout -b stable origin/stable $ git merge --squash -m MFT master $ git svn dcommit # Github $ git fetch origin pull/ID/head:LOCAL_BRANCHNAME # or $ git config --local --add remote.origin.fetch '+refs/pull/*/head:refs/remotes/origin/pr/*' $ git fetch # CONFIGURATION home$ cat ~/.gitconfig [user] name = Simon Lundström email = simon@soy.se [alias] p = push --all ci = commit -a -v co = checkout info = "!git config -l | grep '^remote.origin.url'; git status | head -n1; git show --pretty=medium | head -n3" push-all = "!for i in $(git config --list | grep -E ^remote\\..+\\.url | sed -E 's/^remote\\.(.*)\\.url=.*/\\1/'); do git push $i master; done" [merge] tool = opendiff [color] diff = auto status = auto branch = auto You can email me. git logotypes by Henrik 'Malesca' Nyh