Project

General

Profile

Actions

RedmineGitTracking » History » Revision 1

Revision 1/10 | Next »
John Goerzen, 2008-03-07 23:27


Using Git to contribute to Redmine

Redmine's source tree is stored in Subversion, and everything eventually feeds into there. Some who are comfortable using Git prefer to use it for its branching and merging features, and because you don't need to have SVN commit access to make commits.

Initialization

To start out, run these commands:

git clone git://git.complete.org/branches/redmine-integration
cd redmine-integration
git config --add remote.origin.fetch +refs/remotes/svn/*:refs/remotes/svn/*
git fetch

Exploration

You can see all the branches that Git obtained for you:

git branch -r | less

You'll see output like this. (Many lines omitted here)

origin/HEAD origin/fb-bug-259-git origin/fb-bug-261-issue-redirect origin/fb-bug-641-context-done svn/git svn/issue_relations svn/mailing_lists svn/tags/0.6.3 svn/tags/0.6.3@1011 svn/time svn/trunk svn/wiki

The "origin" branches are being maintained in Git (no corresponding Subversion branch). The svn branches are identical copies of the same branch in the Redmine Subversion repository.

You'll base your work off these branches.

Starting Your Feature

Updated by John Goerzen about 16 years ago · 1 revisions