Open5
便利なGitコマンド集

--prune
リモートで消されたブランチを自動的に削除 git fetch --prune
短縮形
git fetch -p

--amend
コミットメッセージを変更 git commit --amend -m "message"

stash
とstash pop
を自動化する --autostash
リモートの変更を取り込む際のgit pull --autostash
rebase する時も同様
git rebase --autostash
--autostash
をデフォルトにしたい時
.gitconfig
# pull
git config --global pull.autostash true
# rebase
git config --global rebase.autoStash true
--autostash
をデフォルトにしたけど、--autostash
したくない時
.gitignore
# pull
git pull --no-autostash
# rebase
git rebase --no-autostash

GitHub CLI)
プルリクエストを一瞬で手元に持ってくる(PR一覧を見る
gh pr list
該当のPRをローカルに持ってくる
gh pr checkout <Request番号>
短縮系
gh co <Request番号>