Skip to content

Switch SVN repository to github.com

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