The Wayback Machine - https://web.archive.org/web/20220404103201/https://github.com/jesseduffield/lazygit/issues/1856
Skip to content
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

Allow unset-upstream via lazygit #1856

Open
jsbeckr opened this issue Apr 4, 2022 · 1 comment
Open

Allow unset-upstream via lazygit #1856

jsbeckr opened this issue Apr 4, 2022 · 1 comment
Labels
enhancement good first issue

Comments

@jsbeckr
Copy link

@jsbeckr jsbeckr commented Apr 4, 2022

Problem
I tried to rename a branch locally and remotely following this SO post: https://stackoverflow.com/questions/30590083/how-do-i-rename-both-a-git-local-and-remote-branch-name

It seems that it is not possible to git unset-upstream <new-branch> via lazygit. So I had to fallback to the terminal.

Solution

An option in the Local Branches panel to unset-upstream.

Considerations

Maybe a complete workflow that renames local and remote branches would be nice? But considering that the described solution in the SO post delete the remote branch and pushed the local branch again, could lead to confusion. So I am not sure if that is really nice solution.

@jsbeckr jsbeckr added the enhancement label Apr 4, 2022
@jesseduffield
Copy link
Owner

@jesseduffield jesseduffield commented Apr 4, 2022

I'm not sure about the whole workflow but just having an unset-upstream keybinding makes sense. In fact we should have an upstream menu where you can:

  • set the upstream
  • unset the upstream

We can use the 'u' keybinding for opening this menu. Any chance you'd be keen to give this a crack @jsbeckr ?

@jesseduffield jesseduffield added the good first issue label Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement good first issue
Projects
None yet
Development

No branches or pull requests

2 participants