下载 GitHub 官方的客户端:https://cli.github.com/
第一次使用时,执行下面的命令登录 GitHub 账号:
gh auth login
gh repo clone calmdownandcarryon000/git-study
cd git-study
gh repo fork # will create upstream and origin
- Create a branch
git checkout -b feature-xx
- Commit and push
git add . # or git add some-dir
git commit -m 'I did something' # m means message
git push -u origin feature-xx
- Create PR
gh pr create
git status