git-study

下载 GitHub 官方的客户端:https://cli.github.com/

第一次使用时,执行下面的命令登录 GitHub 账号:

gh auth login

Clone Repo

gh repo clone calmdownandcarryon000/git-study
cd git-study
gh repo fork # will create upstream and origin

Commit and push code

  1. Create a branch
git checkout -b feature-xx
  1. 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
  1. Create PR
gh pr create

Check status

git status