tags:

views:

42

answers:

2

Hello

I am using git on Ubuntu 10.4.

I have made some commits to my master.

However, I want to get the difference between these commits. All of them are on my master branch.

For example:

commit dj374
made changes

commit y4746 
made changes

commit k73ud
made changes

So I want to get the difference between k73ud and dj374. However when I did the following I couldn't see the changes I made in k73ud.

git diff k73ud..dj374 > master.patch

Many thanks for any advice,

+2  A: 

Did you try

git diff k73ud^..dj374

to make sure to include all changes of k73ud in the resulting diff?

VonC
Are you sure? git diff 275e8922ab4e995f47a753b88b75c3027444a54c..a8d9d944c32e945cbb9f60b3f724ecc580da86ae works, but git diff 275e8922ab4e995f47a753b88b75c3027444a54c^..a8d9d944c32e945cbb9f60b3f724ecc580da86ae get error message - "unknown revision or path not in the working tree"
demas
@demas: works on my machine ;) you can also use `git diff 275e8^ a8d9d9` since it is the same then '`..`'.
VonC
A: 

If you want to see the changes introduced with each commit, try "git log -p"

cxreg