Reputation: 22696
CentOS 5.3 subversion 1.4.2
I have been using git for one of my projects.
However, our company policy has changed and now I have to import my git project into our new subversion repository.
I am just wondering how I can import a project created in git into a subversion repository?
Ater I have imported the project I will have to checkout. However, I would still rather use the git commands and not subversion commands, if that is possible?
Many thanks for any suggestions,
Upvotes: 4
Views: 1221
Reputation: 7074
Git can use an external svn repository: http://git-scm.com/docs/git-svn
The main commands you must know are:
For the complete push process:
After that, you can still work with Git in local (if your company policy isn't too strict), and synchronize your work with the distant SVN repository (git svn rebase/dcommit).
Upvotes: 4
Reputation: 2038
I think this is a good start if you want to use git-svn: Pro Git - Git and Subversion.
Upvotes: 4
Reputation: 36451
If the company policy is fine with just dumping the code into subversion I would do that and don't bother with the history.
Git supports working with subversion repositories: http://git-scm.com/docs/git-svn
Upvotes: 1