Using git Repositories
This is a very quick guide to using git repositories. It assumes that git is installed and running on your machine. For git information and download, see
git homepage
. Git is easy to install from source (recommended).
For more detailed information, consult the git man pages, or read the tutorials and howtos on the site given above. Also, run
git help -a
to see all available git commands.
Quick git Usage
git add .
adds all files in the directory to the git repository
git commit
commits all changes to the git repository
git log
shows the log of commits to the repository
git diff
shows changes between commits, or if outstanding changes have not been committed, shows these changes
git init
creates a git repository in the current directory
git branch
list, create, or delete branches
git status
shows the status of the working tree
git checkout
switches to a different branch (no branch name defaults to master branch)
--
DuncanPenfoldBrown - 2009-07-23
Topic revision: r1 - 2009-07-23
- dpb