Git 错误错误
error: empty commit messageerror: empty commit message
因提交信息为空,提交被中止。
gitlinuxwindowsmacos
查看详情 There is no tracking information for the current branch当前分支未配置追踪远程分支。
本地分支创建时未设置上游追踪分支。Git 不知道应从哪个远程分支拉取或推送到哪个远程分支。
设置上游分支:git branch --set-upstream-to=origin/branch-name。或在推送时指定上游:git push -u origin branch-name。每个分支只需设置一次。
git branch --set-upstream-to=origin/main mainerror: empty commit message因提交信息为空,提交被中止。
error: non-fast-forward update此次推送会重写远端分支历史,已被拒绝。
You are in 'detached HEAD' stateHEAD 指向某个具体提交而非分支,此时新提交将成为孤立提交。
remote: error: File is too large某个文件超过了远程托管服务允许的最大文件大小。
error: could not apply commit变基过程中应用某个提交时发生冲突。
error: Cannot delete branch currently checked out无法删除当前所在的分支。