Have you ever seen any `gone_remotes`?
foriequal0 opened this issue ยท 7 comments
I haven't seen yet. I don't have a test case for it.
yes: ๐
no: ๐
I did. Would be nice if git trim would remove none existing remotes as well.
@schrieveslaach Thank you for responding to the survey! I initially doubted gone_remote's existence. Would you let me know your workflow? Also, I want to hear about what do you mean by 'none existing remotes'?
(I have so many questions)
Do you use a triangular workflow (upstream, origin(a fork of upstream), local fork)?
I assume that your branch (I'll call it 'A') is both on the upstream and the origin. It is pushed to the origin and pulled from the upstream.
Also since A is classified as 'gone', it is not fully merged into the base branch, isn't it?
But it is 'gone_remotes', A on the upstream is removed but it is still on the fork, is it right?
I thought gone_remote
is absolutely not safe to remove. But I think I'm missing something.
Sometimes at work we create personal forks of our products and we give them to our teammates so that they can test something. When I receive such a fork, I add it with git remote add
and I do the stuff my teammates asked for. When I'm done we with it, the creator of the fork deletes it and I forget about it.
Today, when I used git trim, I noticed that I do have a remote that did not exists anymore. Unfortunately, git trim failed and I had to run git remote remove
.
So there is no special workflow, just temporarily sharing code.
Oh thank you for sharing the story. That can be counted as what I meant for 'triangular workflow'. I haven't thought about deleting the forked repository though. I'll have a look into it. Thanks.
The fail might be caused by the git itself. git fetch --all --prune
fails for the case. It would require various network reachability tests to know whether the remote is actually removed. git-trim
will not try to solve all problems in the git
itself.
Anyway, I'll keep in mind that the remote can be deleted as you've shared to me. Thank you.
You are welcome.
gone remote
is changed its semantics while renaming it to stray remote
. I'll close this survey.