Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 10-21-2010, 10:15 PM   #1
Registered: Sep 2008
Posts: 106

Rep: Reputation: 16
One question on git diff command

I am a newbie of git, and I found the output is not my expected.

I have two branches , master and testing. In testing, I added one file such as file2.c.

Then I switch back to master branch, and try to merge this to master.
I can see this file2.c is in the master branch now. And git status shows, this file is ready to commit.

But when I use git diff, there shows no diff.

So how can I show this kind of diff?
Old 10-21-2010, 10:17 PM   #2
Registered: Sep 2008
Posts: 106

Original Poster
Rep: Reputation: 16
BTW, how about to revert this merge, if I think this is not a good time to do this?



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SBo-git - on git (with patches for current) ponce Slackware 47 03-12-2011 05:12 AM
setting git-diff --color-words as git-diff potuz Linux - Software 5 09-09-2010 01:31 PM
git question MTK358 Programming 3 01-30-2010 02:05 PM
inconsistency issue of git-clone ***/git/mesa/drm with the existing kernel source centguy Linux - Desktop 2 10-08-2008 10:36 PM
Question on diff command just.srad Programming 4 04-05-2008 04:01 AM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 07:03 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration