iOS 使用Xcode push到远程仓库出现:The local repository is out of date. Make sure all changes have been pulled
2018-01-05 18:01
836 查看
错误原因:
远程仓库中的文件存在,而本地仓库中的文件不存在。
解决办法:
方法一 : 创建项目时不创建Readme.md文件,创建完成后不进行其他操作,直接push;
方法二 :cd 切换到当前项目的目录,使用git pull命令取回远程主机某个分支的更新,再与本地的指定分支合并.
git pull --rebase 远程项目地址 master
代码如下:
echo "# text" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin 仓库地址
git push -u origin master
远程仓库中的文件存在,而本地仓库中的文件不存在。
解决办法:
方法一 : 创建项目时不创建Readme.md文件,创建完成后不进行其他操作,直接push;
方法二 :cd 切换到当前项目的目录,使用git pull命令取回远程主机某个分支的更新,再与本地的指定分支合并.
git pull --rebase 远程项目地址 master
代码如下:
echo "# text" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin 仓库地址
git push -u origin master
相关文章推荐
- GitHub Push出现的The local repository is out of date解决
- Xcode7中使用gitHub管理代码时出现The local repository is out of date错误的解决方法
- X-code7 Git 时push错误 The local repository is out of date.
- myeclipse remove掉后项目,tomcat重新部署出现现异常:Deployment is out of date due to changes in the
- the repository is out of date
- Androi开发使用adb时出现adb server is out of date的解决方法
- 解决Tomcat部署Maven异常:Deployment is out of date due to changes in the underlying project contents
- Tomcat发布项目出错:Deployment is out of date due to changes in the underlying project contents...
- git提交出现”Could not read from remote repository.Please make sure you have the correct access rights”错误
- Deployment is out of date due to changes in the underlying project contents. You'll need to manually 'Redeploy' the project to u
- Android开发使用adb时出现adb server is out of date的解决方法
- Xcode4 布置Git环境Your working copy is out of date. Try pulling from the remote to get the latest change
- 命令hexo d 出现错误 Please make sure you have the correct access rights and the repository exists.
- MyEclipse中无法部署项目到tomcat中的解决方法( deployment is out of date due to changes in the underlying ......)
- Android开发使用adb时出现adb server is out of date的解决方法
- git clone时出现Please make sure you have the correct access rights and the repository exists.错误
- MyEclipse部署项目出错:Deployment is out of date due to changes in the
- web程序部署到Tomcat服务器报错Deployment is out ofdate due to changes in the underlying project contents...
- tesseract-ocr 出现 错误 Please make sure the TESSDATA_PREFIX environment variable is set to the parent d irectory of your "tessdata" directory.解决方案
- Android开发使用adb时出现adb server is out of date的解决方法