Using git with disruptive

CentOS 5.3 subversion 1.4.2

I used git for one of my projects.

However, our company policy has changed, and now I need to import the git project into our new subversion repository.

I'm just wondering how can I import a project created in git into a subversion repository?

Ater I imported a project that I have to check. However, I would prefer to use git commands rather than subversion commands, if possible?

Thanks so much for any suggestions,

+3
source share
3 answers

Git can use the external svn repository: http://git-scm.com/docs/git-svn

The basic commands you should know:

  • Git svn rebase (, , )
  • Git svn dcommit ( "git push" SVN)

push:

  • SVN
  • Git SVN: Git svn init -s svn://svnurl/ ( SVN "", "" "" ), "-t trunkdir -t tagsdir -b branchesdir"
  • Git Git svn dcommit, SVN. , ( SVN, ).

Git ( ) SVN (git svn rebase/dcommit).

+3
+4

If the company’s policy is in order, just dumping the code into subversive activities, I would do it and not worry about the story.

Git supports working with subversion repositories: http://git-scm.com/docs/git-svn

+1
source

Source: https://habr.com/ru/post/1768199/


All Articles