Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
git:faq [2009/10/30 14:46] – janakj | git:faq [2010/01/12 12:38] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 46: | Line 46: | ||
If you omit the name of the destination branch after colon then git assumes that it is the same as the name of your source branch. | If you omit the name of the destination branch after colon then git assumes that it is the same as the name of your source branch. | ||
+ | |||
+ | ==== How to see the diff of commits between branches? ==== | ||
+ | ---- | ||
+ | |||
+ | **Question** | ||
+ | |||
+ | Branches during testing period can unsync via --cherry-pick commits, is there a way to see what commits were done only in a specific branch? | ||
+ | |||
+ | **Answer** | ||
+ | |||
+ | A quick way to see the different commits (commits on k_3.0 that are not on sr_3.0) is: | ||
+ | |||
+ | git log --oneline --left-right --cherry-pick origin/ | ||
+ | |||
+ | (the simpler git log --oneline origin/ | ||
+ | |||