Loading

上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: tags: - git 变基简单来说就是将一个分支的提交记录复制到另一个上,以达到减少分支的目的,创造更加 线性 的提交历史 为了防止远程和本地的主干混乱,我们需要先使用 fetch 进行统一 git fetch {main_branch} git checkout {feature_branch} 阅读全文
posted @ 2024-05-17 19:58 big_shark 阅读(15) 评论(0) 推荐(0)
摘要: tags: - git 将当前的工作区和暂存区的修改暂存起来,同时将工作区变得干净,方便 从远程进行 fetch,或者 暂存当前想法同时修改一个bug。 注意在使用多个 stash的时候会出现冲突。 常用命令: # 进行 stash git stash git stash -m {name of s 阅读全文
posted @ 2024-05-17 19:58 big_shark 阅读(20) 评论(0) 推荐(0)
摘要: tags: - git tag 可以分为轻量标签与附注标签 轻量标签很像一个不会改变的分支——它只是某个特定提交的 附注标签是存储在 Git 数据库中的一个完整对象, 它们是可以被校验的,其中包含打标签者的名字、电子邮件地址、日期时间, 此外还有一个标签信息,并且可以使用 GNU Privacy G 阅读全文
posted @ 2024-05-17 19:57 big_shark 阅读(20) 评论(0) 推荐(0)
摘要: tags: - git 感叹号 ! 用于将规则变成白名单。它匹配所有目录,但由于它不匹配这些目录中的任何内容,因此 Git 目前还不会仅通过这两行来跟踪任何文件。 * !*/ # track this file !.gitignore # whitelist everything in ./conf 阅读全文
posted @ 2024-05-17 19:57 big_shark 阅读(57) 评论(0) 推荐(0)
摘要: tags: - git 环境初始化 # 创建git仓库 git init # 环境初始化 git config --global user.name {name} git config --global user.email {email} 设置代理 #http || https git confi 阅读全文
posted @ 2024-05-17 19:57 big_shark 阅读(12) 评论(0) 推荐(0)
摘要: tags: - git 分支 # 查看 git branch # 创建 git branch {name} git switch {name} #切换分支 git checkout -b {name} #创建并切换到分支 git switch -c {name} #同上 # 删除 git branc 阅读全文
posted @ 2024-05-17 19:57 big_shark 阅读(8) 评论(0) 推荐(0)
摘要: tags: - git 主分支 master 正式版本 对于科研 : 可以是最好的指标 开发分支 develop 可以是 预发布,或者 开发的分支 推荐使用 --no-ff 添加合并节点 临时分支 功能 feature 预发布 release 修改bug fixbug 临时添加使用完之后需要删除 部 阅读全文
posted @ 2024-05-17 19:57 big_shark 阅读(10) 评论(0) 推荐(0)
摘要: download sudo apt-add-repository ppa:fish-shell/release-3 sudo apt update sudo apt install fish Tutorial https://www.cnblogs.com/Masquer/p/13920104.ht 阅读全文
posted @ 2024-05-17 19:57 big_shark 阅读(80) 评论(0) 推荐(0)
摘要: tags: - linux 安装 LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*') cu 阅读全文
posted @ 2024-05-17 19:56 big_shark 阅读(37) 评论(0) 推荐(0)
摘要: tags: - linux - neovim 资源 https://github.com/neovim/neovim https://github.com/rockerBOO/awesome-neovim install -- the latest sudo apt-get install soft 阅读全文
posted @ 2024-05-17 19:56 big_shark 阅读(38) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 9 下一页