LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 10-21-2010, 10:15 PM   #1
Richard.Yang
Member
 
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
Richard.Yang
Member
 
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?
 
  


Reply

Tags
git



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 - slackbuilds.org 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 09:20 AM.

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