From VideoLAN Wiki
Revision as of 20:40, 12 April 2007 by Pdherbemont (talk | contribs) (Configure your local git repo)
Jump to navigation Jump to search

Getting VLC source code via Git

git clone git://

You can also browse the sources via gitweb.

Configure your local git repository

Tell git your name. (used by mostly by git-commit)

$ git repo-config "Your Name"
$ git repo-config ""

List the local branch

You can now list your local branch by doing

$ git branch

which should ouput

$ git branch
* master


Now you can start to work on your tree. As soon as you feel you've reached a step in developement you can commit locally your work by

$ git commit -a


$ git commit <specific files>

Keeping your local working branch in sync

$ git fetch origin
$ git rebase origin

voilà! Your commit will be re-applied on top of the origin (the svn trunk).

Creating a secondary local branch

If you want to work on a specific project that could require a branch of the trunk

$ git branch mywork

to actually use it

$ git checkout mywork

Then do some commit on it

$ git checkout master

to go back to your normal branch


Documentation about git