-
Notifications
You must be signed in to change notification settings - Fork 28.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for remote management in git #60640
Conversation
@manjrekarom if it's not much to ask, can you add "Prune/Purge Remote Branches" option as well ?
|
@balexandre Yes. I will be happy to add that as well. But do I need to get a confirmation first? @joaomoreno Should I create a different pull request or add it here? Sorry, I am kinda new to this stuff. Thanks! |
@manjrekarom that will depend if there's more than one remote, and you only prune the one set as upload stream... would be useful to have it as well, like I also use this snipped to get all remotes from each author (so I know what they need to clean up) git for-each-ref --format='%(committerdate)%09%(authorname)%09%(refname)' | sort -k5n -k2M -k3n -k4n | grep remotes | awk -F "\t" '{ printf "%-32s %-27s %s\n", $1, $2, $3 }' |
Feel free to add that to this PR |
@manjrekarom - would love to see this get implemented. Are you still working on it? Need help? |
@jongio I am almost forgot about that. Will start working on the purge/prune thing. I'll let you know if I need any help. Thanks for asking. |
@manjrekarom What are your thoughts on doing it as a separate PR instead of merging it with this one… That way we can get the baseline remote stuff in there and then add prune later on? |
@jongio Yeah. That is fine to me. Priority stuff should be added first. I've done add and remove remote. Can you tell me what more should go into the baseline? |
How about adding a command to view the remotes - |
@jongio Yes, I'll add that in this PR. Here is a list of all remote things from git scm. I've tried categorising them. Let me know what you think. Baseline:
Extra
|
@manjrekarom would these be the main ones to be added? |
Great point. It would be awesome if I could have a 'rebase with remote' feature, but I think that is prob a diff PR. |
@jongio Yes, I'll add that in this PR. Here is a list of all remote things from git scm. I've tried categorising them. Let me know what you think. Baseline: git remote [-v | --verbose] git remote set-head (-a | --auto | -d | --delete | ) |
@manjrekarom - would love to see this get implemented. Are you still working on it? Need help? |
Apart from the error of sanitizing the remote URL, looks great, thanks! |
Awesome! @RMacfarlane - It would be awesome to see how we integrate the PR extension docs with this update. |
Yeah this is awesome |
Thank you so very much everyone! :D Delighted to see my PR go into master. I started working on this as a Hacktoberfest task and never imagined it would go this way. This will be my first (real) accepted PR. And that too for something that I and millions of people enjoy using daily. Thanks again. |
That’s awesome. Thank you so much for the effort. |
Added options for adding and removing remotes.