git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Feature Request] Allow batch removal of remotes with 'git remote remove'
@ 2025-01-20 23:06 Christian Fredrik Johnsen
  2025-01-21 21:10 ` Emily Shaffer
  0 siblings, 1 reply; 8+ messages in thread
From: Christian Fredrik Johnsen @ 2025-01-20 23:06 UTC (permalink / raw)
  To: git@vger.kernel.org


[-- Attachment #1.1: Type: text/plain, Size: 1461 bytes --]

Hello 😃

I would like to propose a feature enhancement to the 'git remote remove' command.

--- The Problem ---
Currently, 'git remote remove' only supports removing one remote at a time. However, it would be useful to allow batch removal of remotes, as in:

`git remote remove remote1 remote2 remote3`

This would simplify workflows for repositories with multiple remotes when clean-up operations are needed.

--- Proposed Solution ---
Modify the 'git remote remove' command to accept multiple remote names as arguments and remove them all in a single invocation.

For example:

`git remote remove myfork myrepo origin`

--- Benefits
- Reduces repetitive commands for users with many remotes.
- Aligns with existing batch-like behavior in commands like 'git branch -d branch1 branch2'.
- Streamlines repository maintenance, especially for power users.

Thank you for considering this request. I’d be happy to provide further details or clarification if needed.

Best regards,
Christian Fredrik Johnsen

=====================================================
---> Generated this message with ChatGPT, but it gets to the point.

I am assuming that this is such a niche case that it hasn't been reported yet, though please correct me if I am wrong.
There are no `github issues` I can search through to find older related issues, so I'll give it a go.

Attached a picture showing the situation where I encountered the issue.

[-- Attachment #1.2: Type: text/html, Size: 6159 bytes --]

[-- Attachment #2: git-remote-remove.png --]
[-- Type: image/png, Size: 231926 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-01-22 16:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-20 23:06 [Feature Request] Allow batch removal of remotes with 'git remote remove' Christian Fredrik Johnsen
2025-01-21 21:10 ` Emily Shaffer
2025-01-21 21:32   ` D. Ben Knoble
2025-01-21 22:38     ` Junio C Hamano
2025-01-22  2:24     ` brian m. carlson
2025-01-22  3:08       ` Jeff King
2025-01-22 16:23         ` Junio C Hamano
2025-01-22  9:40       ` Patrick Steinhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).