git fetch to update the known remote branchesgit checkout -t origin/branchgit branch --track localbranchname remotebranchnamegit config --global push.default trackingpush = localbranchname:remotebranchname in [remote "xy"]remotes/origin/master to master to sourceforge branchgit rebase --onto sourceforge remotes/origin/master master
sourceforge branch point to the most recent commit in master branchgit checkout sourceforgegit reset --hard master
master branch to remotes/origin/mastergit checkout mastergit reset --hard remotes/origin/master
git format-patch and git apply are a huge hazzle under Windows. Following paramters for git am solve most of these problems:
git am --keep-cr --ignore-space-change --ignore-whitespace
$Format:$ in .gitattributes for git archivegit init --bare
export GIT_DIR = .git svn clone with prefix svn--no-follow-parent
or
--no-minimize-url
upstream-vcs branch svn fetchgit push -q GIT_DIR resf/remots/svn/trunk:upstream-vcsgit config --add remote.origin.fetch '+refs/remotes/*:refs/remotes/*'
_netrc in %HOME% (normalerweise c:\users\username)LANG=en.gitconfig — Username setzen - http://book.git-scm.com/2_setup_and_initialization.htmlgit config --global branch.autosetuprebase always