public:git:gitsvn
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| public:git:gitsvn [2010/05/04 10:24] – created toony | public: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 ===== | ||
| + | |||
| + | Clone SVN repository on a local git repository : | ||
| + | < | ||
| + | git svn clone -s < | ||
| + | </ | ||
| + | |||
| + | ===== Viewing branches ===== | ||
| + | |||
| + | Display SVN and Git branches : | ||
| + | |||
| + | < | ||
| + | git branch -a | ||
| + | </ | ||
| + | |||
| + | ===== Checkout a SVN branch ===== | ||
| + | |||
| + | Changing to SVN branch : | ||
| + | < | ||
| + | git checkout < | ||
| + | </ | ||
| + | |||
| + | Creating a working Git branch from current SVN branch : | ||
| + | < | ||
| + | git checkout -b < | ||
| + | </ | ||
| + | |||
| + | ===== Updating SVN repository ===== | ||
| + | |||
| + | Update local SVN clone : | ||
| + | < | ||
| + | git svn fetch | ||
| + | </ | ||
| + | |||
| + | ===== Merging SVN repository in GIT branch ===== | ||
| + | |||
| + | After checkouting Git branch and updating SVN clone, merging update into Git branch: | ||
| + | < | ||
| + | git svn rebase | ||
| + | </ | ||
public/git/gitsvn.1272968699.txt.gz · Last modified: by toony
