git switch --create / -c

From wikieduonline
Revision as of 19:24, 8 March 2023 by Newworld3 (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.

See also

Advertising: