zoukankan      html  css  js  c++  java
  • 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的路径。

  • 相关阅读:
    Vue技巧小结(持续更新)
    Vue+Webpack常见问题(持续更新)
    webpack模块定义和使用的模式
    vue-cli笔记
    新浪微博怎么知道你没登录
    jquery页面水印插件,支持多行水印、行错开
    浏览器并发连接数(未完成)
    HTTP1.0 、1.1
    你总说时间很少
    看小说的这些年
  • 原文地址:https://www.cnblogs.com/edensyd/p/10717292.html
Copyright © 2011-2022 走看看