Skip to content

Instantly share code, notes, and snippets.

@DennisXie
Created April 28, 2018 07:08
Show Gist options
  • Save DennisXie/4d6daedc6693cb8165b492cc8e4369d9 to your computer and use it in GitHub Desktop.
Save DennisXie/4d6daedc6693cb8165b492cc8e4369d9 to your computer and use it in GitHub Desktop.
git pull 报错: There are no candidates for merging among the refs that you just fetched. Generally this means that you provided a wildcard refspec which had no matches on the remote end.
1. git status 查看状态
On branch master
Your branch is behind 'origin/master' by 4 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
nothing to commit, working directory clean
2. git pull
Your configuration specifies to merge with the ref 'master'
from the remote, but no such ref was fetched.
3. git pull origin master
From ssh://xxxxxx
* branch master -> FETCH_HEAD
There are no candidates for merging among the refs that you just fetched.
Generally this means that you provided a wildcard refspec which had no
matches on the remote end.
纳尼,怎么会出现这种问题?把git pull拆开运行
3. git fetch origin master
From ssh://xxxxxxx
* branch master -> FETCH_HEAD
4. git merge origin/master
error: Couldn't write .git/ORIG_HEAD.lock
fatal: Cannot update the ref 'ORIG_HEAD'.
纳尼,权限检查以后没有权限问题,为毛会写不进去呢?
最后同事发现/home目录空间使用了100% 还剩20K........
删文件释放空间后解决问题。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment