0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

git で新しいブランチを切って git push して Github に Draft PRを作成するまでが非常の面倒くさいので簡単なコマンドにする (gitconfigのエイリアス)

Last updated at Posted at 2023-11-30

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

Twitter

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?