-
Notifications
You must be signed in to change notification settings - Fork 15
Switch SVN repository to github.com
frakkopesto edited this page Jan 30, 2013
·
1 revision
- Online, go to your account on github.com and create a new repository e.g.:
github.com/frakkopesto/myimportedrepo
- cd to a temporary folder to use for the process:
cd ~/Desktop
- Export the SVN repository from the server:
svn export -q http://vista.stanford.edu/r/vistaprojects/mysvnrepo
- cd into the newly created folder:
cd ~/Desktop/mysvnrepo
- Initialize a GIT repository:
git init
- Add all the files in the current folder to the GIT repository:
git add *
- Committing the changes in the newly created repository:
git commit -m "Initial repository layout"
- Link the local repository just created to the online repository created in (0):
git remote add origin https://github.com/frakkopesto/life.git
- Push the local repository files to the online git repository.
git push -u origin master
- You can delete the local repository, everything is now stored at:
github.com/frakkopesto/myimportedrepo