[ Prev ] [ Index ] [ Next ]

git

Created Sun 8/5/2011

1. Hello World GIT

    bash $ git clone git://github.com/git/hello-world.git
    bash $ cd hello-world
    bash $ (edit files)
    bash $ git add (files)
    bash $ git commit -m 'Explain what I changed'
    bash $ git format-patch origin/master

2. android.git.kernel

To clone (similar to svn checkout) the "repo" project (under "tools") from the android kernel project (http://android.git.kernel.org), perform:

    bash $ git clone git://android.git.kernel.org/tools/repo  /home/foo/Development/Android/android.kernel.tools.repo

This will clone the repository and the master branch.

To list branches

    bash $ git branch
    bash $ git tags -l

Create a new branch and checkout at either current tag or selected tag

    bash $ git checkout -b mybranch sometag

3. See Also

   * https://git.wiki.kernel.org/index.php/GitFaq

Stuart Moorfoot \copy 8 May 2011 foo@bund.com.au


Backlinks: