
git
Siona_xin
既然选择了远方,便只顾风雨兼程!
展开
-
warning: remote HEAD refers to nonexistent ref, unable to checkout.
在clone项目的时候出现如下警告信息:warning: remote HEAD refers to nonexistent ref, unable to checkout.项目目录clone下来了,但是点进去什么文件也没有,说明你的项目地址没有master分支。可以用 git branch -a 查看远程仓库的分支有哪些?切换到Branch_stable-it分支,项目就有代码了。...原创 2019-12-18 11:03:08 · 1068 阅读 · 1 评论 -
git clone非master分支代码
例如:clone develop 分支的代码执行git clone -b develop <仓库地址>develop是远程仓库的分支名称,远程仓库一定要有这个分支,不然是不可以的。原创 2019-12-18 09:57:20 · 361 阅读 · 0 评论 -
Mac 生成ssh公钥
Mac 生成ssh公钥什么是ssh查看ssh公钥是否存在创建ssh公钥什么是ssh使用 SSH 协议可以连接远程服务器和服务并向它们验证。 利用 SSH 密钥可以连接 GitHub,而无需在每次访问时提供用户名或密码。查看ssh公钥是否存在cat ~/.ssh/id_rsa.pub如果显示 cat: /Users/********/.ssh/id_rsa.pub: No such fi...原创 2019-12-16 14:30:17 · 1125 阅读 · 0 评论 -
Mac安装git,使用时提示 cannot run git xcode-select: note: no developer tools were found, requesting install.
1. 苹果升级了系统到10.13,导致git不能使用,报以下错误no developer tools were found at ‘/Applications/Xcode.app’, requesting install. Choose an option in the dialog to download the command line developer t...原创 2018-09-10 09:39:34 · 22534 阅读 · 5 评论