![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
水军总督
与你同在。
展开
-
Git提示“warning: LF will be replaced by CRLF”最详细解释+解决方案
.原创 2023-03-24 11:04:08 · 518 阅读 · 0 评论 -
删除git暂存区的文件
git reset HEAD 文件名使用reset命令后,本来在暂存区的文件,变为在工作区。链接原创 2021-06-22 17:18:58 · 276 阅读 · 0 评论 -
git cherry-pick 教程
链接原创 2021-01-20 14:37:34 · 103 阅读 · 0 评论 -
git提示“Please make sure you have the correct access rights and the repository exists.”
最近用git提交代码时候,踩了很多坑。也参阅了很多的答案,发现写的都不是很完整,为了防止忘记,在此记录一下。提示:Please make sure you have the correct access rights and the repository exists.谷歌后,发现是ssh key有问题,导致的连接不上服务器。1、首先要重新在git设置一下身份的名字和邮箱。git config --global user.name "yourname"git config --glo.原创 2020-10-27 11:38:41 · 765 阅读 · 1 评论 -
git指令
把当前文件夹变成Git可以管理的仓库:git init把文件filename添加到仓库:git add filename把暂存区的文件提交到仓库:git commit -m "text"显示git的日志:git log --pretty=oneline回退到上一个版本:git reset --hard HEAD^回退到上上个版本:g...原创 2019-11-06 14:06:50 · 222 阅读 · 0 评论