Git: cheat sheet

Switch to the $id branch: git checkout $id Delete the $id branch: git branch -d $id Create branch $id based on head: git branch $id Create branch $id based on head and switch to it: git checkout -b $id

Git: configure Git over HTTP

The most basic Git configuration allows anonymous read access to the Git repository using the git-http-backend script provided with Git versions 1.6.6 and greater. The only thing to do is modify the Apache configuration to use the git-http-backend script. Ensure mod_cgi, mod_alias, and mod_env are enabled, set GIT_PROJECT_ROOT (or DocumentRoot) appropriately, and create a ScriptAlias
Continue reading Git: configure Git over HTTP


GitLab is a database-backed web application to manage Git repositories on-premises. Manage Git repositories with fine grained access controls Perform code reviews and enhance collaboration with merge requests Activity feeds Issue tracking Wiki LDAP/AD integration Completely free and open source Gitlab comes in three variations (compare them here) Community Edition (own server) Enterprise Edition (own
Continue reading GitLab


SmartGit is a graphical Git client which runs on Linux, Mac OS X and Windows. Switching between Branches The simplest way to switch between branches (or more precisely, between the latest commits within branches) is to double-click on a branch in the Branches view and confirm the Switch Branch dialog that comes up. If you
Continue reading SmartGit