Skip to main content
5 of 6
explain second param is optional
Brian Burns
  • 21.5k
  • 10
  • 90
  • 78
git branch -f <branch-name> [<new-tip-commit>]

If new-tip-commit is omitted it defaults to the current commit.

Chris Johnsen
  • 221.5k
  • 26
  • 212
  • 187