Difference between revisions of "Git-svn"
From Vague Hope Wiki
(→Basic usage of git-svn) |
|||
Line 41: | Line 41: | ||
git svn show-ignore > .gitignore | git svn show-ignore > .gitignore | ||
</pre> | </pre> | ||
+ | |||
+ | == Checkout of sub-directory == | ||
+ | <pre> | ||
+ | mkdir prjname | ||
+ | cd prjname | ||
+ | git svn init --no-minimize-url https://example.com/svn/prjname | ||
+ | ... | ||
+ | </pre> | ||
+ | |||
== Useful git cmds == | == Useful git cmds == |
Revision as of 01:45, 10 October 2011
Contents
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 nameoflocalbranch 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 nameoflocalbranch git svn show-ignore > .gitignore
Checkout of sub-directory
mkdir prjname cd prjname git svn init --no-minimize-url https://example.com/svn/prjname ...
Useful git cmds
Show branches:
git branch git branch -a
Check git FS is sane.
git fsck