Error seen during git commands "warning: ignoring broken ref refs/remotes/origin/HEAD" The Fix Check remote branches git branch -r If the above does not display an "origin/HEAD", the HEAD can be set. git remote set-head origin main Where "main" is the primary/head branch.