LoginSignup
18

More than 5 years have passed since last update.

まだブラウザでGithubを開いてPull Requestしてるのですか?

Last updated at Posted at 2015-07-22

Pull Requestの時間を省略することで、積み重なった多くの無駄な時間が解消できると思います。

hub をインストールして下記を設定をすると、

.gitconfig
[alias]
    pr = !hub browse -- compare/$(git symbolic-ref --short HEAD)'?'expand=1'&'body=%23%23%20%E7%9B%AE%E7%9A%84%0A%0A%23%23%20%E5%A4%89%E6%9B%B4%E5%86%85%E5%AE%B9

git pr コマンドで

スクリーンショット 2015-07-22 11.18.34.png

自動的にブラウザが立ち上がり、このようなPull Requestが作成されます。

また、bodyに好きな文章を入れて使ってください。チームで共有すると文体が統一されて良いです。

.gitconfigをGithubで公開したくない、もしくはGithub Enterpriseでも使用したい場合は、いちいちgit configしたくないがgithubなどで公開したくない設定をする場合の対処法 - Qiita

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
18