HELP ASAP I made a local svn server on my device to import from git to svn. I wa
ID: 3854416 • Letter: H
Question
HELP ASAP
I made a local svn server on my device to import from git to svn. I was able to access it by the url http://localhost/svn/$REPOSITORY. I inputted the repository (PizzaPrices) that I created using svnadmin create where it says $REPOSITORY. The repository I created (PizzaPrices) was located at /var/svn on my device. Now I need to access an svn server already made with the url type svn://svn.hostname... but when I try to input the url on my command line, it says that unable to connect to a repository at the url I specify. I need to import from my github to the svn server with svn://svn.hostname... url now. I think there is an issue that before my server started with http://... and now it starts with svn://...
What url should I input to access the server svn://...? OR how should I access it (which instructions). I tried to access it by svn://svn.hostname/var/svn/PizzaPrices but it still gave me the error stated above
Explanation / Answer
Two Reasons for problem unable to connect to a repository:
1.Reboot a server by Executing a command like netsh winsock reset.
2.Check the status of the server,URL(an active link)on which server can be reached.
3.If you cannot reach the server at before using URL from the same host(preferably) check the network connection and correctness of hostname.
Procedure to import github to the SVN server:
1.cd/path/to/git/localrepo
2.svn mkdir --parent protocol:///path/to/repo/PROJECT/trunk -m "Importing git repo"
3.git svn init protocol:///path/to/repo/PROJECT -s
4.git svn fetch
5.git rebase origin/trunk
1.git status
2.git add(conflicted files)
3.git rebase --continue
4git svn dcommit.
Using higher level URL:Protocol:///path/to/repository/PROJECT=>protocol:///path to repo:
you can sync from svn->git,using the following commands:
git svn fetch
git rebase trunk
and to sync from git ->svn,use
git svn dcommit
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.