Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using gita to move and sync repo structure between workspaces #270

Open
RudolfVonKrugstein opened this issue Feb 5, 2024 · 5 comments
Open

Comments

@RudolfVonKrugstein
Copy link

Hi,

I have the following situation:
At my workplace I have numerous repos I am working with, and I have to work with them from multiple locations, like:

  • a windows pc
  • a linux pc
  • a linux server

It would be helpful to me, if I could make sure that all repos I am working with are cloned at all these workspaces, so I tried to do this with:

gita freeze
gita clone -f

But that does not work, because gita freeze outputs the full, and not relative, path and my workspaces are located in different base directory.

Is there a workaround for this? Is gita an adequate tool for this?

Thank you!

@nosarthur
Copy link
Owner

How would the folder structure on a windows machine translate to a linux machine?

@RudolfVonKrugstein
Copy link
Author

well it could translate if it would be all folders relative to a base folder.

@RudolfVonKrugstein
Copy link
Author

Would you Accept merge requests for that, or would you say Gita is the wrong tool?

@nosarthur
Copy link
Owner

I am open for PR. Please describe your solution first

Overall I feel the gita freeze and gita clone commands are a bit unpolished. At the moment, gita freeze shows all repos instead of the repos in the current context.

There is a group concept, which defines a 'group root' path, which could serve the anchor for gita clone. But I'm not sure what to do with repos not in a group, or groups without 'root' path. Also what do we do for different groups with different 'root' paths?

@RudolfVonKrugstein
Copy link
Author

Mmh, my naive Idea would have been, that one could specify a "relative" Parameter to "freeze" which would make all path relative to the current directory or to a Base path one has to specify when calling Git freeze.

Same with Gita clone, If the pathes are relative, the pwd or a specified Base dir ist used.

For using the group concept, one could allow to freeze only a single group at a time and making all path relative that groups Base path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants