Difference between revisions of "Git-svn"

From Vague Hope Wiki
Jump to: navigation, search
Line 17: Line 17:
 
<pre>
 
<pre>
 
git svn fetch
 
git svn fetch
 +
</pre>
 +
 +
Commit changes:
 +
<pre>
 +
git status
 +
git add path/to/file
 +
git commit
 +
</pre>
 +
<pre>
 +
 
</pre>
 
</pre>
  

Revision as of 05:08, 3 October 2010

Basic usage of git-svn

Check out:

mkdir prjname
cd prjname
git svn init https://example.com/svn/prjname/trunk
git svn fetch -r HEAD
git checkout -b nameofbranch

Show status:

git svn stat

Update:

git svn fetch

Commit changes:

git status
git add path/to/file
git commit

Useful git cmds

Check git FS is sane.

git fsck