LoginSignup
12
11

More than 5 years have passed since last update.

現在のブランチで加えた変更を見る

Last updated at Posted at 2013-02-19

masterからfix/fooブランチを切ったとする

履歴表示: git log

git log master..fix/foo # two dots

差分表示: git diff

git diff master...fix/foo # three dots

diff <commit>..<commit>はblob同士の差分表示,diff <commit>...<commit>git diff $(git-merge-base A B) Bと同じ (ref: git help diff)
git log, git diffどちらもHEADと比較するならfix/fooは省略可能.

こういったリビジョンの範囲指定シンタックスはgit help revisionsで見られます.

12
11
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
12
11