mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-11-23 16:22:24 +03:00
feat: add fork remote command
The command allows you to quickly add a fork remote by replacing the owner in the origin URL and optionally check out a branch from new remote.
This commit is contained in:
committed by
Stefan Haller
parent
ba632d4064
commit
3892c40666
@@ -392,6 +392,12 @@ func (self *Shell) SetBranchUpstream(branch string, upstream string) *Shell {
|
||||
return self
|
||||
}
|
||||
|
||||
func (self *Shell) RemoveBranch(branch string) *Shell {
|
||||
self.RunCommand([]string{"git", "branch", "-d", branch})
|
||||
|
||||
return self
|
||||
}
|
||||
|
||||
func (self *Shell) RemoveRemoteBranch(remoteName string, branch string) *Shell {
|
||||
self.RunCommand([]string{"git", "-C", "../" + remoteName, "branch", "-d", branch})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user