git pull
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), done.
From https://github.com/diexiyan/test_conflict
* branch master -> FETCH_HEAD
error: Your local changes to the following files would be overwritten by merge:
d.txt
Please commit your changes or stash them before you merge.
Aborting
提交文件到本地仓库再进行拉取即可。
新建的git目录推送到已有git目录的远程仓库中或者冲突文件没有处理正在进行推送:
error: failed to push some refs to 'https://github.com/diexiyan/project.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
检查冲突文件、新建工程重新推送git push url
已经拉取的文件没有对本地文件保存到本地仓库进行修改:
git pull
From https://github.com/diexiyan/test_conflict
* branch master -> FETCH_HEAD
Already up to date.