一定得会的 GitHub 骚操作之 创建、配置、授权、克隆、推送你的 GitHub 仓库 by 帅彬Posted on2019-08-05 好了,咱们这篇来跟你说说创建一个 GitHub 仓库,以及在这个过程中会涉及到的一些操作。 进入 GitHub 的官网,点击本文隐藏内容 登陆 后才可以浏览快去试一下吧~
最后一步上传本地的内容上去 出现了: 命令:git push origin master error: src refspec master does not match any. error: failed to push some refs to ‘[email protected]:XXXXXX.github.io.git’ 登录以回复
我新建文件夹时 再$ git add baimubing/README.md fatal: pathspec ‘baimubing/README.md’ did not match any files 出错了 登录以回复
我也直接yes了 然后Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 登录以回复
执行命令时出现以下错误: [email protected]: Permission denied (publickey). 确认了/.ssh目录下有id_rsa,id_rsa.pub known_hosts三个文件 登录以回复
git bash生成密钥时,需要在.ssh能够自动生产id_rsa.pub文件,里面的公钥才能使用的。分享给大家。
最后一步上传本地的内容上去 出现了:
命令:git push origin master
error: src refspec master does not match any.
error: failed to push some refs to ‘[email protected]:XXXXXX.github.io.git’
先git status一下,看一下分支是不是对的,因为在最新版本的 Git 中,GitHub 默认使用 main 分支作为主分支,而不再使用 master。
授权了push的时候还是要输账号/密码
我复制下来你的项目 可是怎么在 fxxkpython\vip里添加我自己的 文件夹 再推送上去
我新建文件夹时 再$ git add baimubing/README.md
fatal: pathspec ‘baimubing/README.md’ did not match any files
出错了
baimubing/fxxkpython
forked from wistbean/fxxkpython
你的项目我也是复制到自己的GitHub里了
ssh: connect to host github.com port 22: Resource temporarily unavailable
帅b这是为什么?
git clone [email protected]:Rush886/handsomed.git 后
系统 hosts 设置一下 github 的地址
git bash here 在哪里?终端里输入没有这个命令呢
伙伴们,是这个提示:
搜索还没解决
[email protected]: Permission denied (publickey).
你的授权没弄对哦,需要生成秘钥传到 Github 上面去才可以上传。
己阅
找不见储存公钥的文件夹,是隐藏了还是就没有生成成功
隐藏了
win10 密钥验证时,The authenticity of Host ‘GitHub.com’ can’t be established.
。。。。。。
直接选yes
我也直接yes了 然后Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
添加的时候
Key is invalid. You must supply a key in OpenSSH public key format
你的公钥没有粘贴对
不是很明白ssh GitHub 授权的作用
是不是类似于mac地址绑定的概念,不设置时,只要知道用户名和密码,在任意终端都可以
提交,设置之后只有在指定终端可以提交。
就是在你的终端想要提交到 GitHub 上面去,你就得 ssh 验证授权,这样子 GitHub 才允许你提交,要不然你是提交不了的。
我没有进行认证却提交了艾,帅比 还有就是 git Bash here 我打开 git help 没有找到这个指令艾 这个是什么?
执行命令时出现以下错误:
[email protected]: Permission denied (publickey).
确认了/.ssh目录下有id_rsa,id_rsa.pub known_hosts三个文件
在github上删除了一次key,重新添加一次后问题解决
Linux新手想咨询一下,在Ubuntu里面如何找到打开 git Bash Here。id_rsa.pub 公钥文件又是怎么可以打开呢?_(:з」∠)_
Linux 的话直接用命令窗口就可以了,使用 Ctrl + alt + t 打开!生成的文件位置会显示给你看的。