Configure Git

Configure your name and e-mail. This needs to be only once, if configured with --global. If you want to use some other settings for buildroot project, you first need to clone buildroot repository and then use these same commands without --global keyword.

Basic workflow

Create a branch to work on your topic (to be done for every separate topic you'd like to work with)

git checkout -b mytopic

Note that this also switches immediatly to the new mytopic branch. You can run 'git branch' at any time to know on which branch you are.

Make some modifications, for one particuler subtopic (like adding the vala compiler)

Commit those modifications

git commit -s -a

And enter an appropriate commit log.

If you created new files, add them with "git add".

Review your changes

git log -p master..

Prepare patches for your changes

git format-patch master

This will generate a set of 000X-*.patch files in the Buildroot directory

Send your patches to the list

git send-email --to buildroot at uclibc.org --compose *.patch

All done

In case of mistakes in my branch

If while reviewing your commits you find that you need to merge some of
them (because you did some mistakes that you fixed later and you don't
want the world to know about your mistakes), then you have to use the
rebasing feature of git

git rebase -i master

Git will open up a text editor with the list of your commits. You can
edit this file to change the order of the commits, or to change the
action taken on a particular commit (see the file itself for
documentation on those actions).