Git 错误错误
fatal: ambiguous argumentfatal: ambiguous argument
Git 无法判断该参数指的是版本引用、路径还是其他内容。
gitlinuxwindowsmacos
查看详情 error: Cannot delete branch currently checked out无法删除当前所在的分支。
Git 不允许删除已检出的分支,必须先切换到其他分支。
先切换到其他分支:git checkout main,再删除:git branch -d branch-to-delete。若要强制删除未合并的分支,将 -d 改为 -D。
fatal: ambiguous argumentGit 无法判断该参数指的是版本引用、路径还是其他内容。
fatal: shallow update not allowed从浅克隆进行的推送被拒绝,因为远程不允许浅更新。
fatal: bad object引用的 Git 对象不存在或已损坏。
fatal: Not possible to fast-forward, aborting使用 --ff-only 的拉取失败,因为两个分支已发生分叉。
fatal: branch is already checked out at another worktree该分支无法被检出,因为它已在另一个工作树中被检出。
fatal: Authentication failedGit 与远端服务器的身份验证失败。