For example, checking out to a specific tag name or adding ^0 on any given branch causes the detached HEAD state. Some other scenarios can cause a detached HEAD as well. If you check out to the origin (main) branch, which is read-only, you will be in the detached HEAD state. Another situation that causes a detached HEAD is checking out the remote branch. We already demonstrated that if you check out the SHA-1 commit hash, you will be in the detached HEAD state.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |