![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Git
文章平均质量分 71
火蚂蚁cui
这个作者很懒,什么都没留下…
展开
-
git add --all时出现 warning:LF will be replaced by CRLF in xxxx
在执行git add --all命令时出现警告信息:warning:LF will be replaced by CRLF in xxxx。处理方法:在命令行输入git config core.autocrlf false这样设置config的配置后执行add操作就没有问题了。...原创 2019-10-08 11:42:38 · 272 阅读 · 0 评论 -
git 克隆、拉取推送时总是提示输入密码。或提示Permission denied (publickey).
git@gitee.com: Permission denied (publickey).fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.Failed during: git fetch origin master:refs/remotes/origin/master --tags --force很大一倍原创 2020-07-08 12:01:21 · 1623 阅读 · 1 评论 -
Linux 安装git、配置git账号
可用git --version命令检查服务器中是否已经安装git。一、安装git打开终端,安装git。sudo apt install git二、配置git账号1、设置用户名和邮箱git config --global user.name "自己git用户名"git config --global user.email "自己的git邮箱"2、根据用户名、邮箱生成密钥ssh-keygen -t rsa -C "自己的git邮箱"连续回车即可。3、根据成功后的地址,查看生成的秘原创 2020-09-09 15:37:10 · 5315 阅读 · 1 评论 -
git 强制拉取更新为仓库最新内容
git fetch --allgit reset --hard origin/develop (develop为分支名称或master)git pull (可不写)转载自:https://www.cnblogs.com/imfx/p/10862556.html转载 2020-10-22 10:07:41 · 460 阅读 · 1 评论 -
将本地已有的一个项目上传到新建的git仓库的方法
转载自【可爱的萌新程序员】:https://blog.csdn.net/ymmccc/article/details/84111500将本地已有的一个非git项目上传到新建的git仓库的方法一共有两种。一、 克隆+拷贝第一种方法比较简单,直接用把远程仓库拉到本地,然后再把自己本地的项目拷贝到仓库中去。然后push到远程仓库上去即可。此方法适用于本地项目不是一个git仓库的情况。具体步骤如下:1、首先克隆git clone git@github.com:yuanmingchen/tensorf转载 2021-01-19 15:26:21 · 1315 阅读 · 0 评论