| 两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 |
| public:it:git [2025/05/27 11:36] – [Usage] oakfire | public:it:git [2026/01/05 17:19] (当前版本) – [Usage] oakfire |
|---|
| * [[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]] |
| ==== 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 的認識與正確使用!]] |
| 但对使用者来说, 命令的正交性不强这一点, 就造成了使用者需要记住大量单独的命令. | 但对使用者来说, 命令的正交性不强这一点, 就造成了使用者需要记住大量单独的命令. |
| 考虑找个或弄个简化版的本地版本控制系统, 或者做个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 . |
| </WRAP> | </WRAP> |
| |