3 ms·
> Now git branch -d supports a --force/-f option, which can be used to delete a branch even if it hasn't been merged yet. How is that different from `git branc
by hk__2 12y ago
> Now git branch -d supports a --force/-f option, which can be used to delete a branch even if it hasn't been merged yet.
How is that different from `git branch -D`?
- mhagger 12y ago`git branch --force -d` is the same as `git branch -D`. But it is more consistent with other Git commands. Instead of having to change `-d` to `-D` to force the delete, you add the `-f/--force` option like elsewhere.