User Tools

Site Tools


public:git:gitsvn

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
public:git:gitsvn [2010/05/04 10:28] toonypublic:git:gitsvn [2010/05/04 20:47] (current) toony
Line 1: Line 1:
 ====== Git-svn ====== ====== Git-svn ======
  
-This page describe Git-svn usefull command.+Get-svn reminder.
  
 ===== Cloning SVN repository ===== ===== Cloning SVN repository =====
  
 +Clone SVN repository on a local git repository :
 <code> <code>
-git svn clone -s <SVN-url>+git svn clone -s <SVN-url-root>
 </code> </code>
 +
 +===== Viewing branches =====
 +
 +Display SVN and Git branches :
 +
 +<code>
 +git branch -a
 +</code>
 +
 +===== Checkout a SVN branch =====
 +
 +Changing to SVN branch :
 +<code>
 +git checkout <SVN-branch-name>
 +</code>
 +
 +Creating a working Git branch from current SVN branch :
 +<code>
 +git checkout -b <GIT-branch-name>
 +</code>
 +
 +===== Updating SVN repository =====
 +
 +Update local SVN clone :
 +<code>
 +git svn fetch
 +</code>
 +
 +===== Merging SVN repository in GIT branch =====
 +
 +After checkouting Git branch and updating SVN clone, merging update into Git branch:
 +<code>
 +git svn rebase
 +</code>
 +
public/git/gitsvn.1272968902.txt.gz · Last modified: 2010/05/04 10:28 by toony