Skip to content

Commit

Permalink
Update git.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhikangNiu authored Mar 28, 2024
1 parent 42a9f16 commit 3b821fc
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions src/useful/git.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,28 @@

- Learn Git Branching(强推): [[zh-cn](https://learngitbranching.js.org/?locale=zh_CN)]
- Pro Git 中文版:[[zh](https://www.progit.cn/)]
- 约定式提交,或许可以规范你的Github提交:\[[zh-cn](https://www.conventionalcommits.org/zh-hans/v1.0.0/)\]
- Commit message 和 Change log 编写指南:[[zh-cn](https://ruanyifeng.com/blog/2016/01/commit_message_change_log.html)]
- commitizen/cz-cli: [[Github](https://github.com/commitizen/cz-cli)]
- 第一次参与开源项目,如何提交pr: [[Github: zh-cn](https://github.com/firstcontributions/first-contributions/blob/main/translations/README.zh-cn.md)]
- 给 Github Desktop 设置代理:[[zh-cn](https://xieincz.github.io/post/gei-github-desktop-she-zhi-dai-li/)]
- Gitchat: [[zh](https://wkevin.github.io/GitChat/gitchat.html#round-1-%E8%B5%B7%E6%AD%A5)]
- Git规范化提交
- 约定式提交,或许可以规范你的Github提交:\[[zh-cn](https://www.conventionalcommits.org/zh-hans/v1.0.0/)\]
- Commit message 和 Change log 编写指南:[[zh-cn](https://ruanyifeng.com/blog/2016/01/commit_message_change_log.html)]
- commitizen/cz-cli: [[Github](https://github.com/commitizen/cz-cli)]
- 第一次参与开源项目,如何提交pr: [[Github: zh-cn](https://github.com/firstcontributions/first-contributions/blob/main/translations/README.zh-cn.md)] | [[mmcv contribution](https://mmcv.readthedocs.io/zh-cn/latest/community/contributing.html)]
- 给 Github Desktop 设置代理:[[zh-cn](https://xieincz.github.io/post/gei-github-desktop-she-zhi-dai-li/)]
- clone远程仓库的指定分支
```bash
git clone -b + 要clone的分支名 + 仓库地址
# eg: git clone -b dev [email protected]:CS-BAOYAN/CSBasicKnowledge.git
```
- SSH key的生成:
- 检查SSH key是否存在:
```bash
ls -al ~/.ssh
# Lists the files in your .ssh directory, if they exist
```
- 生成SSH key, 会在/your_home_path/.ssh/生成id_rsa和id_rsa.pub
```bash
ssh-keygen -t rsa -C "[email protected]"
# Creates a new ssh key using the provided email
Generating public/private rsa key pair.
Enter file in which to save the key (/your_home_path/.ssh/id_rsa):
```

0 comments on commit 3b821fc

Please sign in to comment.