Using Git with Logging

This page reflects some knowledge from: with logging specifics.

Setting up your log4j environment

git clone git://
cd log4j/.git
cd ..
git config svn.authorsfile ".git/authors.txt"
# check if your username and email are identical to those in the author file
git config
git config
# if they are not identical, set the ASF values locally 
# git config <Your Name> 
# git config <Your Email>

git svn init --prefix=origin/ --tags=tags --trunk=trunk --branches=branches
git svn rebase

After this, you'll need to fetch the old history.

git svn fetch --log-window-size 10000

Commits can happen with:

git svn dcommit

This will commit all your git commits to svn - one git commit == 1 svn revision. Consider rebase.

Working with SVN branches

You need git svn fetch (see above) to make this work.

Create a new local branch and switch to it in GIT:

git checkout -b log4j12modules-svn origin/log4j12modules

Map the GIT branch to the according SVN branch:

git reset --hard origin/log4j12modules 

For reference, you can override the committ url:

git svn dcommit --commit-url

Working with remote branches from Github

You can add a remote branch from github like this:

git remote add stubbs

Pull changes with:

git pull stubbs modulriseify

When merge conflicts happen, these can be resolved using:

git mergetool


UsingGitWithLogging (last edited 2012-06-02 10:07:54 by p54A44C95)