Added localBranch option for Git SCM

This is a rework of #253 which is compatible with version 1.x of the Git Plugin.