You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
clone command requires <DIRECTORY> argument, which I think it should be optional instead: [<DIRECTORY>]:
git way:
git clone [OPTIONS] <repository> [<directory>]
gix way:
gix clone [OPTIONS] <REMOTE> <DIRECTORY>
Motivation 🔦
git by default uses the project name when creating folders. Whereas gix, we have to pass manually, which makes the UX a bit slower. (since we have to copy-paste the repository name)
The following command should just work:
$ gix clone git@github.com:Byron/gitoxide.git
error: The following required arguments were not provided:
<DIRECTORY>
We can easily get the <DIRECTORY> from the repository name, which is gitoxide in this case.
The text was updated successfully, but these errors were encountered:
…tion directory. (#683)
Note that the implementation doesn't take into account potential redirects and renames
as it's implemented only with the first URL it sees (not the redirected ones).
Thanks for bringing it up. As gix is a development tool best ux isn't one of its goals - that is only true for ein which is incumbent at best.
That said, as it's easy enough to implement this well enough, I have implemented it now. Please note that git applies more logic than is currently implemented so the results may differ in some less common cases. Also, I fixed a bug that would make it possible to deadlock clones with ssh urls, thus you might want to build a fresh gix from main.
Summary 💡
clone
command requires<DIRECTORY>
argument, which I think it should be optional instead:[<DIRECTORY>]
:git way:
gix way:
Motivation 🔦
git
by default uses the project name when creating folders. Whereasgix
, we have to pass manually, which makes the UX a bit slower. (since we have to copy-paste the repository name)The following command should just work:
We can easily get the
<DIRECTORY>
from the repository name, which isgitoxide
in this case.The text was updated successfully, but these errors were encountered: