git config --global user.email "mark AT himsley DOT org" git config --global user.name "Mark Himsley" git config --global core.editor "vim" git config --global push.default upstreamWhen creating a new local repository:
git init git add path git add file.ext git commitWhen creating a new remote repository:
mkdir project.git cd project.git git init --bareWhen defining a remote repository in a local one:
git remote add origin ssh://user@host/path/to/repository.git git remote -vWhen pushing to a remote repository from a local one:
git push origin masterExport a copy of your current git HEAD to a tar.bz2
git archive --format=tar --prefix=<PATH>/ HEAD | bzip2 > ../<FILE>.tar.bz2