$ ./guess_the_languageGit
Git · medium · #8

Which command deletes the branch anyway, discarding its unmerged commits?

$ git branch -d tmp
error: the branch 'tmp' is not fully merged
  1. git branch -D tmp
  2. git branch -m tmp
  3. git branch -u tmp
  4. git branch -c tmp
-D is --delete --force, which skips the merged check. -m renames, -u sets an upstream and -c copies a branch.
Play Git ▸