• 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的路径。

  • 相关阅读:
    一种在【微服务体系】下的【参数配置神器】
    阅读源代码之“那是我的青春”
    我谈防御式编程
    博客开篇
    redis-sentinel-cluster-codis
    redis-复制
    redis-持久化
    redis-事件
    圆角矩形精度条
    小程序---canvas画图,生成分享图片,画图文字换行
  • 原文地址:https://www.cnblogs.com/edensyd/p/10717292.html
Copyright © 2020-2023  润新知