git
git的一些用法以及遇到过的问题
decrystal
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
The authenticity of host ‘github.com (52.74.223.119)‘ can‘t be established.
The authenticity of host ‘github.com (52.74.223.119)’ can’t be established. 在初始化git之后(git init),同时在github建立好仓库之后,本地也新增了ssh kye(ssh-k...转载 2020-11-06 17:43:46 · 218 阅读 · 0 评论 -
Please make sure you have the correct access rights and the repository exists.问题解决
提示:Warning: Permanently added 'gitee.com,120.55.226.24' (ECDSA) to the list of known hosts. 是公钥出问题了,要先设置用户和邮箱再重新生成ssh公钥即可。 1、首先我得重新在git设置一下身份的名字和邮箱 进入到需要提交的文件夹底下(因为直接打开git Bash,在没有路径的情况下...转载 2020-11-06 17:40:56 · 147 阅读 · 0 评论 -
GIT本地新建分支并提交到远程仓库
1.建立本地仓库查看当前项目根目录中有没有 .git文件(隐藏文件),如果没有,右键->Git bash here ,然后输入命令git init建立本地仓库`git init2.将代码提交到本地仓库git add .git commit -m "new branch commit"3.在本地仓库中建立一个与远程仓库的别名,以便之后提交代码而不是每次都要输入远程仓库地址。指令结尾是git的仓库地址,我使用的是SSH连接方式git remote add origin git@XX.XX转载 2020-11-06 17:34:17 · 4543 阅读 · 0 评论
分享