thefuck icon indicating copy to clipboard operation
thefuck copied to clipboard

Default Git branch is assumed to be master

Open Tbhesswebber opened this issue 3 years ago • 1 comments

https://github.com/nvbn/thefuck/blob/5198b34f24ca4bc414a5bf1b0288ee86ea2529a8/thefuck/rules/git_branch_delete_checked_out.py#L17

I'm curious if this is intended to be updated to main rather than master or if there's a rationale for keeping it set to master.

Tbhesswebber avatar Jun 16 '22 15:06 Tbhesswebber

master is default for my git cmd since I haven't updated it. I do think that it should check whether the branch exists by running a subshell git branch -l first

nopeless avatar Jul 18 '22 18:07 nopeless