🖥

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オープンチャットもご利用ください。

https://line.me/ti/g2/eEPltQ6Tzh3pYAZV8JXKZqc7PJ6L0rpm573dcQ

Twitter

https://twitter.com/YumaInaura

公開日時

2023-11-30

Discussion