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

Add a command to clone Git repositories #2

Closed
akirak opened this issue Jul 9, 2019 · 3 comments
Closed

Add a command to clone Git repositories #2

akirak opened this issue Jul 9, 2019 · 3 comments

Comments

@akirak
Copy link
Owner

akirak commented Jul 9, 2019

I plan on adding a command for cloning Git repositories to the local machine.

The name will be git-identity-clone. There is magit-clone, but with git-identity-clone, you will be able to clone remote repositories to designated directories by default.

To implement this feature, the format of git-identity-list will be changed. Each item in the list will get an optional :targets field, which consists of a URL spec, a local path, and options. This field lets you define mappings between remote URLs and local directories.

A few notes on additional features:

  • It would be better if a corresponding identity is automatically set when a repository is cloned by the command. The current implementation of magit-clone does not seem to allow a custom clone hook, so I have to implement a git-clone wrapper on my own, or maybe contribute to magit to allow this feature.
  • By adding support for forges such GitHub and GitLab via APIs, it would be possible to list remote repositories as well as create a remote repository. This feature is of less importance, though.

This is currently work in progress at feature/clone branch.

@akirak
Copy link
Owner Author

akirak commented Mar 8, 2020

forge has added support for a similar feature, but I'm willing to continue with this.

@akirak
Copy link
Owner Author

akirak commented Dec 22, 2020

I am not sure if I should support this feature in this package.

@akirak
Copy link
Owner Author

akirak commented May 27, 2021

I've found another package that should support the feature of cloning git repositories. I will close this PR.

@akirak akirak closed this as completed May 27, 2021
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

1 participant