lazygit icon indicating copy to clipboard operation
lazygit copied to clipboard

[Feature Request] Support for direct CLONING from inside lazygit

Open iocouto opened this issue 4 years ago • 11 comments

Right now we are already able to create a new local repository with lazygit, as well as manage a previously-cloned one. It seems odd that I'm not able to also clone a repository with lazygit...

iocouto avatar Apr 12 '21 09:04 iocouto

@jesseduffield this might be an option in the Status pane that brings up a prompt for the link and destination path?

Seems like a good first issue.

mark2185 avatar Aug 08 '22 09:08 mark2185

Agreed

jesseduffield avatar Aug 08 '22 11:08 jesseduffield

But we should add some options, e.g.:

  • --depth=1
  • --recurse-submodules
  • maybe a new name for the destination folder
  • not sure what else

Any ideas on what it should look like? Because these can be combined.

mark2185 avatar Aug 08 '22 12:08 mark2185

we really need to introduce a form panel

jesseduffield avatar Aug 08 '22 21:08 jesseduffield

should this be delayed until the form panel has been created?

willparsons avatar Feb 08 '23 15:02 willparsons

once the repo has been cloned do we want to

  • do nothing
  • ask the user if they want to switch to the cloned repo
  • put the repo into the "recent repos" list

willparsons avatar Feb 08 '23 18:02 willparsons

@willparsons it's okay for us to have basic git clone functionality. We can add the form approach later. After cloning we should ask the user if they want to switch to the cloned repo. We should also (unconditionally) add the repo to the recent repos list

jesseduffield avatar Feb 11 '23 00:02 jesseduffield