Difference between revisions of "Git-svn"
From Vague Hope Wiki
Line 1: | Line 1: | ||
== Basic usage of git-svn == | == Basic usage of git-svn == | ||
− | + | Checkout: | |
<pre> | <pre> | ||
mkdir prjname | mkdir prjname | ||
Line 30: | Line 30: | ||
git svn rebase | git svn rebase | ||
git svn dcommit | git svn dcommit | ||
+ | </pre> | ||
+ | |||
+ | == Checkout with branches == | ||
+ | <pre> | ||
+ | mkdir prjname | ||
+ | cd prjname | ||
+ | git svn init https://example.com/svn/prjname | ||
+ | git svn fetch -r HEAD | ||
+ | git checkout -b nameofbranch | ||
+ | git svn show-ignore > .gitignore | ||
</pre> | </pre> | ||
Revision as of 08:53, 3 October 2010
Basic usage of git-svn
Checkout:
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
Checkout with branches
mkdir prjname cd prjname git svn init https://example.com/svn/prjname git svn fetch -r HEAD git checkout -b nameofbranch git svn show-ignore > .gitignore
Useful git cmds
Show branches:
git branch git branch -a
Check git FS is sane.
git fsck