git上传提交遇到问题

git上传提交遇到问题

一. The local repository is out of date.Make sure all changes have been pulled from the remote repository and try again.

字面意思很好理解, "确保所有东西都从远程拉下来" . 是因为你再github新建的项目中有文件在本地没有造成的,需要将它pull到终端,先cd到你项目目录 git pull命令的作用是,取回远程主机某个分支的更新,再与本地的指定分支合并

git pull <远程主机名> <远程分支名>:<本地分支名> 现在已经在项目当前目录了 。

git pull --rebase xxx master xxx 是Add Remote的Name 默认为origin master 是你的分支名称 默认是master

二. xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer/") does not exist, use xcode-select --switch path/to/Xcode.app to specify the Xcode that you wish to use for command line developer tools (or see man xcode-select) 这个的原因,是因为更新了xcode软件,在更新svn时,找不到这个软件,导致的。

解决办法就是:将Xcode的路径,重新设置一下。

sudo xcode-select --switch “Xcode的path,直接在应用程序里面找到Xcode,拖拽到这里”

sudo xcode-select --switch /Applications/Xcode\ 2.app

“/Applications/Xcode\ 2.app” 就是我的Xcode的路径。

posted @ 2019-04-16 15:14  心泪无恒  阅读(575)  评论(0编辑  收藏  举报