jj git clone --origin NAME #4447
Closed
samueltardieu
started this conversation in
General
Replies: 2 comments 1 reply
-
FWIW I used to do the
I know this isn’t really a direct solution to your problem, but it’s great. No regrets. Try it out. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I have opened #4449 to test the idea. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Would it be useful to add
--origin NAME
(or--remote NAME
) to use another name thanorigin
as the default remote?My use case is that I often participate to projects hosted on GitHub. I call the upstream remote
upstream
, and when I contribute my own fork isorigin
. I track themain
branchfrom
upstream`, and private branches from origin.I would like to be able to do:
Right now, I have to create and clone my fork (even though I'm not sure I'll contribute yet), and then add the
upstream
remote, untrackmain
and trackmain@upstream
. Or I must clone the upstream, renameorigin
asupstream
, forget aboutmain
and trackmain@upstream
, then I can add myorigin
remote when it is needed.I have the feeling that being able to set the original remote name (as in
git clone --origin NAME https://…
) would allow smoother processes.--origin NAME
could also be--remote NAME
.--origin
is how git calls it,--remote
is the standard arg name used by jj.If people think this might be useful, I might devise a PR containing this feature.
Beta Was this translation helpful? Give feedback.
All reactions