Build what's next on GitHub, the place for anyone from anywhere to build anything.
Join us October 28-29 in San Francisco or online for GitHub Universe, our flagship developer event uniting people, agents, and the world's code.
Are you part of a software development team that’s recently moved to GitHub? Where some team members are excited to use git for source control but you’re more comfortable with…
Are you part of a software development team that’s recently moved to
GitHub? Where some team members are excited to use git for source control but
you’re more comfortable with Subversion? The good news is that you can
all use the tools you already enjoy – GitHub repositories can be accessed from
both Git and Subversion (SVN) clients.
This is an overview of how you can take advantage of
the GitHub Flow
from your favorite Subversion client.
The GitHub Flow involves iterating through the following steps for each
feature/fix:
master branchmaster branch; discuss theThe first thing you’ll want to do is a Subversion checkout. Since Git clones keep the
working directory (where you edit files) separate from the repository
data, there is only one branch in the working directory at a time.
Subversion checkouts are different — they mix the repository data in the
working directories, so there is a working directory for each branch and
tag you’ve checked out. For repositories with many branches and tags,
checking out everything can be a bandwidth burden; so you should start
with a partial checkout.
GitHub supports both Git and Subversion clients using the HTTP protocol,
start by browsing to the repository page on github.com to get the HTTP clone URL:

Then get your checkout ready:
Start with an empty checkout of the repository. Browse to the
repository page on github.com and use the HTTP clone URL:
Get the ‘trunk’ branch. The Subversion bridge maps trunk to
the git HEAD branch (usually master.)
Get an empty checkout of the branches directory. This is
where all of the non-HEAD branches live, and where you’ll be making
feature branches.
The first step is to create a topic branch from the latest master
branch. From your svn client, make sure master is current by updating
trunk; then use svn copy to create a branch.
You can see that the new branch is there from the web interface or a git
client:

Add some features, fix some
bugs, and make plenty of commits along the way. This works like the
Subversion you’re used to – edit your file(s) and use svn commit to
record your changes.
When you have your changes ready to share with the rest of the team, use
the web interface to make a Pull Request:






Your changes will now be in the master branch; use svn update to bring your checkout up to date, and then start working on the next awesome thing!