When performing a git clone I'd like the option to specify an alternate target directory, just as I can with git clone on the command line.
For example, this can be useful when cloning a template repository, making a few edits, then pushing back to a new origin.
The problem as it stands is that the location chosen within VSCode is only for the repository's _parent_ directory. There does not appear to be a way to specify the destination proper.
To illustrate further, VSCode appears to do the equivalent of:
$ mkdir -p /home/jdandrea/git/my-repo && cd $_
$ git clone https://url/to/repo.git
Cloning into 'repo'...
. . .
Whereas what I want to do instead is:
$ git clone https://url/to/repo.git /home/jdandrea/git/my-repo
Cloning into '/home/jdandrea/git/my-repo'...
. . .
Note the different clone target of my-repo vs repo.
I tried renaming the directory just after cloning, expecting VSCode to follow the name change, however this does not work as expected and is out-of-scope per #20071.
_Originally posted by @jdandrea in https://github.com/microsoft/vscode/issues/103987#issuecomment-674966458_
When cloning, VS Code asks you where you want to clone the repository to. Don't you get a dialog popup?
Oh you want a different folder name.
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
:slightly_smiling_face: This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
Most helpful comment
Oh you want a different folder name.