Git
Jump to navigation
Jump to search
Reference
man git-push, git-branch
Commands
git reset --hard HEAD - reset any uncommitted changes git branch - list branches git branch -a - list branches (including remote) git tag - list repo tags git repo-config core.sharedRepository true - allow access by multiple users git submodule add git@mygithost:project goes/here --branch x.y
Zsh prompt symbols
Status: ✔: repository clean ●n: there are n staged files ✖n: there are n unmerged files ✚n: there are n changed but unstaged files …: there are some untracked files Branch: ↑n: ahead of remote by n commits ↓n: behind remote by n commits ↓m↑n: branches diverged, other by m commits, yours by n commits :: hash, not a branch
Guides
Articles
- Understanding Git Conceptually
- pushing and pulling
- Understanding the Git Workflow
- A successful Git branching model
Handy
Submodules
- Drupal Deployment with Git Submodules
- Use Git submodules to avoid storing Drupal core and contrib modules in your site's repository
- Git Submodules: Adding, Using, Removing, Updating
Repos
Git used for private repo, with Gitweb for easy overview.
For a public setup, a hosting system with access control like gitosis or gitolite is required, or for public read only, git-daemon would do.