进阶
Git 和 GitHub 是广泛使用的代码管理工具。
原理
配置
git config --global user.name "websoft9"
git config --global user.email "help@websoft9.com"
git config --global credential.helper store
git clone https://github.com/websoft9dev/role_init_password.git
经过以上配置,默认会在用户目录中生成:/root/.gitconfig 和 /root/.git-credentials 两个文件
Github CLI
GitHub CLI 是用于在计算机上使用 GitHub 功能的命令行工具。可以将以下 GitHub 功能与 GitHub CLI 结合使用。
- 查看、创建、克隆和复刻仓库
- 创建、关闭和列出议题和拉取请求
- 审查、差异和合并拉取请求
- 创建、编辑、列出和查看 Gist