archimatetool / archi-modelrepository-plugin

coArchi - a plug-in to share and collaborate on Archi models.
153 stars 52 forks source link

[Feature Request] Local Git repositories #97

Closed Petrolevb closed 10 months ago

Petrolevb commented 5 years ago

It would be nice to be able to add a remote that is on local computer (URL should be able to manage /home/user/anything or C:\Users\anything)

cgoguyer commented 4 years ago

Is there some news about this feature? As git support file repository, it would be nice to store data without a server.

Phillipus commented 4 years ago

No news. It hasn't been implemented (yet). I've been too busy with other Archi features.

smirnoww commented 4 years ago

+1. I also need this feature

GuyWicks commented 4 years ago

A rough workaround to this is to manually create a git repository on your pc and then use file:///c:/localrep/.git/ as the URL with a dummy username/password

c: cd \ mkdir c:\localrep cd localrep git init Inititalized empty Git repository in c:/localrep/.git/

then use file:///c:/localrep/.git/ when creating a repository in Archi

This, by default creates the git repository on your local PC's (I'm using Windows) %APPDATA%/Roaming directory - but if you change this to a better location then it should work.

And then you get the benefit of the commit and branching features.

The only trouble is, how do you get your existing XML based models into the new model - that old chestnut!

And I've not tested this on a network share with multiple people though...

jbsarrodie commented 4 years ago

@GuyWicks : In fact, you should be able to use a FILE based URL even at the beginning, ie. when importing the model into the workspace. Of course the publication will fail, but the repository will have been created and will be usable for later commits (at least it used to work 2 years ago the last time I tried).

cgoguyer commented 4 years ago

I've setup a file repo on a remote share (git init --bare) the import, commit, refresh button work but I get an error with the publish button: "error during unpacking on remote end: error cannot lock pack". But If I use the git push command in my local repo it works. The error appear only within archi UI.

aheizenreder commented 10 months ago

+1. I also need this feature.

Phillipus commented 10 months ago

You can do this now. Here's an example:

  1. Create dir "/Users/username/repo"
  2. cd Users/phillipus/repo
  3. git init --bare
  4. In Archi, "Import Remote Model To Workspace"
  5. Add URL `file:////Users/username/repo/"
  6. Add any user name and password
  7. Click OK