Difference between revisions of "Git-svn"

From Vague Hope Wiki
Jump to: navigation, search
(Basic usage of git-svn)
Line 7: Line 7:
 
git svn fetch -r HEAD
 
git svn fetch -r HEAD
 
git checkout -b nameofbranch
 
git checkout -b nameofbranch
git-svn show-ignore > .gitignore
+
git svn show-ignore > .gitignore
 
</pre>
 
</pre>
  
Line 33: Line 33:
  
 
== Useful git cmds ==
 
== Useful git cmds ==
 +
Show branches:
 +
<pre>
 +
git branch
 +
git branch -a
 +
</pre>
 +
 
Check git FS is sane.
 
Check git FS is sane.
 
<pre>
 
<pre>

Revision as of 08:49, 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
git svn show-ignore > .gitignore

Show status:

git svn stat

Update:

git svn fetch
git svn rebase

Commit changes:

git status
git add path/to/file
git commit
git svn rebase
git svn dcommit

Useful git cmds

Show branches:

git branch
git branch -a

Check git FS is sane.

git fsck

References