是否可以在 `git branch --delete` 中默认设置 `--force` 参数?

Is it possible to default the `--force` parameter in `git branch --delete`?

如果删除后无法访问,git branch --delete (git branch -d) 将显示警告。选项 --force (-D) 将强制删除。

是否可以配置 git 以便 git branch -d 表现得像 git branch -D

简短的回答是否定的,无法以这种方式配置 Git

当然,您可以制作一个调用 git branch -D 别名 (shell 或 Git 别名)并在适当的位置使用它git branch -d 个。例如,git delbranchdelgitbranch 可能是 git branch -D.

的别名