随笔分类 -  Git

摘要:[git rebase详解(图解+最简单示例,一次就懂)]https://blog.csdn.net/weixin_42310154/article/details/119004977 阅读全文
posted @ 2024-01-15 17:44 starc的miao 阅读(3) 评论(0) 推荐(0)
摘要:方法一 【git restore 和 git restore --staged】https://blog.csdn.net/u013493841/article/details/104451987 方法二 【need merge】https://deepinout.com/git/git-quest 阅读全文
posted @ 2024-01-06 17:54 starc的miao 阅读(56) 评论(0) 推荐(0)
摘要:git checkout isp 原因是Win和Linux文件格式不一致,要么切换到Linux环境下操作,要么git config core.protectNTFS false 查了下官方手册,官方原话: If set to true, do not allow checkout of paths 阅读全文
posted @ 2023-10-19 11:57 starc的miao 阅读(310) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/B11050729/article/details/132131659 阅读全文
posted @ 2023-10-18 17:39 starc的miao 阅读(14) 评论(0) 推荐(0)
摘要:可能是Git版本过高,需要降低Git版本。 本来Git版本为2.41,降低为2.33,git clone就可以了 阅读全文
posted @ 2023-10-10 14:16 starc的miao 阅读(303) 评论(0) 推荐(0)
摘要:创建Gitee账号和仓库 1、官网:https://gitee.com/ 创建好账号,然后登录账号 2、流程 点击创建仓库 填写仓库信息 创建好仓库后点击仓库主页的管理 在管理中自行选择是否开源 创建好仓库后:点击自己主页设置,配置SSH秘钥 点击设置按钮跳转到主页,然后点击红色箭头的SSH秘钥配置 阅读全文
posted @ 2023-08-12 12:47 starc的miao 阅读(307) 评论(0) 推荐(0)
摘要:git stash 当开发到一半时,需要pull远端的代码,但这会覆盖本地的代码 因此,需要暂存本地的代码 git stash git pull git stach pop (处理完pull代码之后,把暂存的代码pop出来) 查看 git stash list git rm 删除远端的文件 git 阅读全文
posted @ 2023-06-26 20:05 starc的miao 阅读(143) 评论(0) 推荐(0)
摘要:git status 查看修改文件有哪些 git status -s 等效于 git status --short git log 显示已经提交版本的详细信息 git log --oneline 单行显示,仅显示简约化的信息 git add ‒ 添加文件到暂存区 ‒ 可用git status查看哪些 阅读全文
posted @ 2023-06-26 08:58 starc的miao 阅读(18) 评论(0) 推荐(0)
摘要:Linux下载连接 https://git-scm.com/book/zh/v2/起步-安装-Git sudo yum install git-all git --version git连接gitee步骤 1.在Gitee仓库中新建需要的仓库 2.设置配置信息 git config --global 阅读全文
posted @ 2022-03-31 22:16 starc的miao 阅读(32) 评论(0) 推荐(0)