Git usage in the dpkg team

Recommandations for handling the [ Git] repository.


Public branches

Generic recommendations

First line should be a small summary

* src/file.c (foo): Made the foo() function check bla to avoid stuff.
* src/other.c: Fixed usage of foo() to match the previous change.

The extended description should contain a paragraph following the [ GNU ?ChangeLog format]. Additional free form paragraphs can be used for longer explanations if needed.

How to release

For translators

If the git push fails, redo the command git fetch && git rebase <remote> and try again. Note that git rebase can be interrupted if there's a conflict between your work and the changes made on the remote repository. In that case, fix the conflicts by editing the conflicted files, then git add <conflicted files> and ask the rebase process to continue with git rebase --continue. Once it's over, git push should work.

<!> Git, as a distributed VCS, allows you to make multiple commits without pushing your changes back, please avoid that if possible. We advise you to not multiply commits uselessly because they clutter the historical log and it's more difficult to see important changes on the code (instead of the translations). If you have multiple commits waiting to be pushed, Git offers you a possibility to "merge" them in a single commit. Proceed as following (we assume you're on the branch where you did the mutiple commits, all the changes are already commited, and the branch is named $BRANCH):