Skip to content
Discussion options

You must be logged in to vote

You checked out a specific commit or tag rather than a branch, so HEAD points straight at a commit instead of a branch ref. Commits you make there belong to no branch and will be lost to garbage collection once you switch away. To keep them, create a branch from where you are: git switch -c my-branch (or git branch my-branch <sha> if you already moved).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Kevinchamplin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant