安装
Linux安装Git
1 | sudo yum install git |
配置
长期保存登录凭证
1 | git config --global credential.helper store |
暂时缓存登录凭证
1 | git config --global credential.helper cache |
命令
克隆
1 | git clone <repository-url> |
拉取
1 | git pull |
暂存
1 | git add |
提交
1 | 提交已经 add 过的文件 |
推送
1 | git push |
错误处理
💗💗 git 报错信息: SSL certificate problem: certificate has expired 解决方案
1 | 使用git时报错 |
学习资源
- 视频
尚硅谷【 5h打通Git全套教程丨2021最新IDEA版 https://www.bilibili.com/video/BV1vy4y1s7k6】
- 书籍
- 猴子都能懂的 Git 入门 https://backlog.com/git-tutorial/cn/
- GitHub 漫游指南 https://github.phodal.com/
- 文档
- GitHub 官方文档
https://docs.github.com/cn:
- GitHub 官方文档
- 游戏
- Learning Git Branching
https://learngitbranching.js.org/?locale=zh_CN:
- Learning Git Branching