You are in 'detached HEAD' stateDetached HEAD state
HEAD is pointing to a specific commit rather than a branch, meaning new commits will be orphaned.
error: Your local changes would be overwrittenGit refuses to perform an operation because it would overwrite uncommitted local changes.
You tried to checkout, merge, or pull while having uncommitted changes in files that would be modified by the operation. Git prevents this to avoid losing your work.
Commit your changes: git add . && git commit -m 'WIP'. Or stash them: git stash, then restore after: git stash pop. Or discard changes if not needed: git checkout -- file (careful, this is destructive).
git stash && git checkout main && git stash popYou are in 'detached HEAD' stateHEAD is pointing to a specific commit rather than a branch, meaning new commits will be orphaned.
fatal: refusing to merge unrelated historiesGit refuses to merge two branches that do not share a common ancestor.
CONFLICT (content): Merge conflictGit could not automatically merge changes because the same lines were modified in both branches.
fatal: Authentication failedGit authentication with the remote server failed.
error: LFS object not foundA Git LFS tracked file could not be downloaded from the LFS server.
fatal: bad revisionThe specified revision (commit hash, branch name, tag) does not exist.