git
水军总督
与你同在。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Git提示“warning: LF will be replaced by CRLF”最详细解释+解决方案
.原创 2023-03-24 11:04:08 · 645 阅读 · 0 评论 -
删除git暂存区的文件
git reset HEAD 文件名 使用reset命令后,本来在暂存区的文件,变为在工作区。 链接原创 2021-06-22 17:18:58 · 378 阅读 · 0 评论 -
git cherry-pick 教程
链接原创 2021-01-20 14:37:34 · 150 阅读 · 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 · 957 阅读 · 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 · 296 阅读 · 0 评论
分享