Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Altium with Git?

Altium has built in support for Subversion but we do have a need for version control at multiple sites. WANdisco can synchronize multiple SVN repositories but it is expensive. Has anyone used Altium with Git? If so, how?

like image 547
jacknad Avatar asked Feb 25 '11 18:02

jacknad


People also ask

Does Altium support Git?

Altium Designer supports the Subversion (SVN) and Git version control systems (VCS).

How do I use Altium Vault?

Sign-in to your Altium Vault from the Data Management - Vaults page of the Preferences dialog. Once signed in, the button will change to Sign out. From the System - Altium Vault page of the Preferences dialog. Simply enter the vault's URL, and your access credentials, then click the Sign in Altium Vault link.


3 Answers

I recently got this working. I'm using a private repo on github, so I unfortunately can't show proof. But here is how to do it, I hope this helps others as it took me a few hours to figure it out. Note, there should be nothing special about using github, they are probably using the git-svn as Paul mentioned.

I'm using the 'built in version' of SVN under Altium Version Control preferences. I do have tortoise svn installed, although that's just so I can use some of the GUI features. (I'm using tortoise 1.8.5, which seems to work fine with github).

Here is the thing that got me stuck... For SVN to work, you CAN NOT have an empty repo, you have to have at least one commit. So assuming you are on github, start a repo, and then follow the instructions they give. (just so the repo is not empty):

touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin [email protected]:flirc/altium.git
git push -u origin master

Now go to Altium, Preferences->Data Management->Design Repositories

Then click "connect to" SVN. A dialog should appear. The name is just a local reference so you can distinguish the server if you have multiple.

For github, and my example above:

  • Method: https
  • Server: github.com
  • Server Port: Default
  • Repository Sub Folder: /flirc/altium

It should be able to connect, and you should be able to seamlessly use SVN in Altium now. Seems to be working great so far. Hope that helps.

like image 83
Jason Kotzin Avatar answered Sep 18 '22 16:09

Jason Kotzin


I recently re-raised this question with Altium and got the following reply:

Eric Anderson, good question! I am sorry to say that there is only support for SVN and CVS as you were aware. I have not heard of any future plans for the other storage/version control software packages. The only thing that comes to mind is to use the built in SVN and in the "working directory" try adding that to Git (or others) and do the commits/updates external from Altium.

I can also suggest going onto AltiumLive and into Ideas section and enter an idea. If enough people like it and vote for it the possibility for implementation exists (no promises of course).

AltiumLive ideas is at http://bugcrunch.live.altium.com/#Ideas/New if anyone feels like commenting there.

like image 38
Eric Anderson Avatar answered Sep 17 '22 16:09

Eric Anderson


Have a look at git-cvsserver it's a a CVS server emulator for git. It appears to offer the pserver protocol directly to a CVS client. It's doesn't support watches though.

like image 20
Paul Evans Avatar answered Sep 20 '22 16:09

Paul Evans