Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using git-svn from within netbeans

Is there any way to use git-svn from within Netbeans. I'm currently working on a project that uses svn, and I'd like to at least use git locally.

like image 239
Varun Madiath Avatar asked Aug 16 '11 18:08

Varun Madiath


People also ask

Can I use Git and SVN at the same time?

No interaction between them. Just ignore the . git folder for SVN and the . svn folder for Git and you should be fine.

How Import SVN project to Netbeans?

Importing Files into a Repository To import a project to a repository: From the Projects window (Ctrl-1 on Windows/Cmd-1 on OS X), select an unversioned project and choose Versioning > Import into Subversion Repository from the node's right-click menu. The Subversion Import wizard opens.


1 Answers

NetBeans currently does not support git-svn. You still may use NetBeans for local Git repository, but you have to run git svn rebase and git svn dcommit yourself.

Another option is to use SubGit on a server-side:

  1. Install SubGit into your Subversion repository, see documentation.
  2. Setup remote access to created Git repository, e.g. using git-http-backend.
  3. After that you may clone that Git repository via NetBeans and work with it as with usual Git repository.
  4. On every push SubGit automatically converts your Git commits into Subversion revisions.
  5. When someone commits changes to your Subversion repository, SubGit automatically converts them into new Git commits. So, you get them with a normal pull.

Hope that helps.

like image 184
vadishev Avatar answered Oct 17 '22 14:10

vadishev