public:it:git

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版
前一修订版
public:it:git [2025/07/18 13:59] – [Git 原理] oakfirepublic:it:git [2026/01/05 17:19] (当前版本) – [Usage] oakfire
行 32: 行 32:
   * [[http://wp.joak.org/?p=62 | Git 博文备查]]   * [[http://wp.joak.org/?p=62 | Git 博文备查]]
   * [[https://github.com/commitizen/cz-cli | Commitizen:Git 提交信息优化]]   * [[https://github.com/commitizen/cz-cli | Commitizen:Git 提交信息优化]]
 +  * [[https://conventional-branch.github.io/zh/| 分支命名规范]]
   * [[http://pcottle.github.io/learnGitBranching/|Learning git branching]]   * [[http://pcottle.github.io/learnGitBranching/|Learning git branching]]
   * [[https://nvie.com/posts/a-successful-git-branching-model/|git flow]],[[https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow|gitflow-workflow]]   * [[https://nvie.com/posts/a-successful-git-branching-model/|git flow]],[[https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow|gitflow-workflow]]
行 39: 行 40:
 ==== Ignore ==== ==== Ignore ====
   * [[http://git-scm.com/docs/gitignore|gitignore]]   * [[http://git-scm.com/docs/gitignore|gitignore]]
 +  * 白名单的写法为:<code> 
 +*
 +
 +!.gitignore
 +
 +# whitelist `src` directories and their children, regardless of place
 +!src/
 +!src/**/
 +!src/**/*.h
 +!src/**/*.cpp
 +
 +!/docs/
 +!/docs/*.md
 +</code>
 ==== Submodule ==== ==== Submodule ====
   * 参考[[http://josephjiang.com/entry.php?id=342|Git Submodule 的認識與正確使用!]]   * 参考[[http://josephjiang.com/entry.php?id=342|Git Submodule 的認識與正確使用!]]
行 151: 行 166:
 但对使用者来说, 命令的正交性不强这一点, 就造成了使用者需要记住大量单独的命令. 但对使用者来说, 命令的正交性不强这一点, 就造成了使用者需要记住大量单独的命令.
 考虑找个或弄个简化版的本地版本控制系统, 或者做个git的命令包装. 考虑找个或弄个简化版的本地版本控制系统, 或者做个git的命令包装.
-这篇文章不错:https://www.highflux.io/blog/what-makes-git-hard-to-use +这篇文章不错:https://www.highflux.io/blog/what-makes-git-hard-to-use . 
-这个可借鉴:https://github.com/jj-vcs/jj+这个可借鉴:https://github.com/jj-vcs/jj .
 </WRAP> </WRAP>
  
  • public/it/git.1752818386.txt.gz
  • 最后更改: 2025/07/18 13:59
  • oakfire