![]() $ git fetch /tmp/git.repo refs/heads/master:refs/heads/fetched Now you can transfer commits from your local Git repository at git.repo to your SVN repository at svn.clone: SmartGit will autodetect an existing trunk/branches/tags layout and, if one exists, configure Git to map SVN branches to Git branches. With SmartGit, clone svn://localhost into a new directory. $ svn mkdir svn://localhost/trunk svn://localhost/branches svn://localhost/tags -m "Initial structure." ![]() However, it’s highly recommended to use the aforementioned standard layout. SmartGit can handle repositories with the standard trunk/branches/tags layout, as well as repositories without any specific layout (i.e. If you already have an SVN repository, create a directory for a new project in it and use the SVN URL of that directory instead of svn://localhost for the rest of this tutorial. ![]() Now your SVN repository can be accessed via svn://localhost. ![]() Then open svn.repo/conf/nf and set anon-access=write. If it doesn’t exist yet, create it and run svnserve to make it accessible: In the following, we will assume that you have a Git repository in a directory named git.repo, with 3 commits in the master branch. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |