🖥
git で新しいブランチを切って git push して Github に Draft PRを作成するまでが非常の面倒くさいので簡単なコマン
.gitconfig
.gitconfigにエイリアス登録しておく
[alias]
pr = "!sh -c 'git checkout -b $1 && git commit --allow-empty -m $1 && git push' -"
実行
git pr new-branch
あとは標準出力のURLからGithubにアクセスしてPRを作成するだけ
remote: Create a pull request for 'xxx' on GitHub by visiting:
remote: https://github.com/AAA/BBB/pull/new/new-branch
チャットメンバー募集
何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。
公開日時
2023-11-30
Discussion