git switch --create / -c

From wikieduonline
Revision as of 08:42, 20 June 2023 by Welcome (talk | contribs)
Jump to navigation Jump to search

git switch -c main


You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.


Move existing, uncommitted work to a new branch in git

See also

Advertising: