GitUsage
From BRIstuff.org
Revision as of 14:23, 17 August 2008; Tzafrir (Talk | contribs)
(diff) ←Older revision | Current revision | Newer revision→ (diff)
(diff) ←Older revision | Current revision | Newer revision→ (diff)
For basic usage introduction, see the man page gittutorial.
The following may also be useful.
Get Asterisk:
git clone git://repo.or.cz/asterisk-bristuff.git
or libpri:
git clone git://repo.or.cz/libpri-bristuff.git
The following should be run at the toplevel directory of the repository:
move to a specific branch:
git checkout <branchname> git checkout bristuff
List of branches. On which branch am I?
git branch
List of remote branches:
git branch -r
Update:
git pull
What is the difference of libpri.h between branch master and tag 1.4.3?
git diff master 1.4.3 libpri.h
How did libpri.h look at 1.4.3?
git show 1.4.3:libpri.h
Log for a branch/tag/commit:
git log
The diff from commit 47468f35ff16432e256354669cf9333bcea8ec6d
git show 47468f35ff16432e256354669cf9333bcea8ec6d
