Tag: git
All the articles with the tag "git".
Git 按提交信息查找 Commit
使用 :/text 直接按提交信息定位 Git 提交,不必先查 SHA
Git 只切出指定目录
用 git checkout / git restore 从远程分支只更新某个目录
Git 只克隆指定分支
用 --single-branch 和 --depth 只拉某个分支,甚至只要最新一次提交
Git 忽略文件的三种方式
.gitignore、.git/info/exclude、全局 ignore 三层忽略规则
.DS_Store 莫名其妙的上传到 git,一不小心就打进了压缩包
Updated:.gitignore 不生效 & 之前错误提交的文件现在无法 ignore
Updated:修改提交 & 撤回提交
Updated: