Flags available for the git checkout command.
git checkout
These flags control checkout behavior including branch creation.
-b
-B
--detach
--force
--orphan
Git.checkout
Flags available for the
git checkoutcommand.These flags control checkout behavior including branch creation.
-b: Creates a new branch and checks it out.-B: Creates or resets a branch.--detach: Detaches HEAD to checkout a commit.--force: Forces checkout, discarding local changes.--orphan: Creates a new branch with no commit history.