Skip to main content
Active reading [<https://en.wikipedia.org/wiki/Git>].
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

git status 'git status' shows changed files, but git diff'git diff' doesn't

I've had a look at all similar questions however. However, I've double checked and something strange is definitely happening.

On one server (Solaris with gitGit 1.8.1) I cloned the gitGit repository then copied the .git folder into my existing live files. This worked perfectly, I could run

git status 

then

git diff [filename] 

to check any files that were different.

On another server (Solaris with gitGit 1.7.6) I'm doing exactly the same however

git diff [filename]  

shows nothing, even if the contents of the file is definitely different. I have also tested adding a new file, committing it, and then editing. SameThe same issue, git status shows the file as changed, but git diff shows nothing. If I download the changed file and run a diff locally then I get diff output.

git status shows changed files but git diff doesn't

I've had a look at all similar questions however I've double checked and something strange is definitely happening.

On one server (Solaris with git 1.8.1) I cloned the git repository then copied the .git folder into my existing live files. This worked perfectly, I could run

git status 

then

git diff [filename] 

to check any files that were different.

On another server (Solaris with git 1.7.6) I'm doing exactly the same however

git diff [filename]  

shows nothing, even if the contents of the file is definitely different. I have also tested adding a new file, committing it then editing. Same issue, git status shows the file as changed but git diff shows nothing. If I download the changed file and run a diff locally then I get diff output.

'git status' shows changed files, but 'git diff' doesn't

I've had a look at all similar questions. However, I've double checked and something strange is definitely happening.

On one server (Solaris with Git 1.8.1) I cloned the Git repository then copied the .git folder into my existing live files. This worked perfectly, I could run

git status 

then

git diff [filename] 

to check any files that were different.

On another server (Solaris with Git 1.7.6) I'm doing exactly the same however

git diff [filename] 

shows nothing, even if the contents of the file is definitely different. I have also tested adding a new file, committing it, and then editing. The same issue, git status shows the file as changed, but git diff shows nothing. If I download the changed file and run a diff locally then I get diff output.

Notice removed Draw attention by towi
Bounty Ended with user1338062's answer chosen by towi
Notice added Draw attention by towi
Bounty Started worth 50 reputation by towi
added 36 characters in body
Source Link
eckes
  • 67.7k
  • 31
  • 177
  • 209

I've had a look at all similar questions however I've double checked and something strange is definitely happening.

On one server (Solaris with git 1.8.1) I cloned the git repository then copied the .git folder into my existing live files. This worked perfectly, I could run git status,

git status 

then git diff [filename]

git diff [filename] 

to check any files that were different.

On another server (Solaris with git 1.7.6) I'm doing exactly the same however git diff [filename]

git diff [filename] 

shows nothing, even if the contents of the file is definitely different. I have also tested adding a new file, committing it then editing. Same issue, git statusgit status shows the file as changed but git diffgit diff shows nothing. If I download the changed file and run a diff locally then I get diff output.

I've had a look at all similar questions however I've double checked and something strange is definitely happening.

On one server (Solaris with git 1.8.1) I cloned the git repository then copied the .git folder into my existing live files. This worked perfectly, I could run git status, then git diff [filename] to check any files that were different.

On another server (Solaris with git 1.7.6) I'm doing exactly the same however git diff [filename] shows nothing, even if the contents of the file is definitely different. I have also tested adding a new file, committing it then editing. Same issue, git status shows the file as changed but git diff shows nothing. If I download the changed file and run a diff locally then I get diff output.

I've had a look at all similar questions however I've double checked and something strange is definitely happening.

On one server (Solaris with git 1.8.1) I cloned the git repository then copied the .git folder into my existing live files. This worked perfectly, I could run

git status 

then

git diff [filename] 

to check any files that were different.

On another server (Solaris with git 1.7.6) I'm doing exactly the same however

git diff [filename] 

shows nothing, even if the contents of the file is definitely different. I have also tested adding a new file, committing it then editing. Same issue, git status shows the file as changed but git diff shows nothing. If I download the changed file and run a diff locally then I get diff output.

[filename]
Source Link
Oliver P
  • 3.5k
  • 2
  • 18
  • 14

I've had a look at all similar questions however I've double checked and something strange is definitely happening.

On one server (Solaris with git 1.8.1) I cloned the git repository then copied the .git folder into my existing live files. This worked perfectly, I could run git status, then git diff to[filename] to check any files that were different.

On another server (Solaris with git 1.7.6) I'm doing exactly the same however git diff shows[filename] shows nothing, even if the contents of the file is definitely different. I have also tested adding a new file, committing it then editing. Same issue, git status shows the file as changed but git diff shows nothing. If I download the changed file and run a diff locally then I get diff output.

I've had a look at all similar questions however I've double checked and something strange is definitely happening.

On one server (Solaris with git 1.8.1) I cloned the git repository then copied the .git folder into my existing live files. This worked perfectly, I could run git status, then git diff to check any files that were different.

On another server (Solaris with git 1.7.6) I'm doing exactly the same however git diff shows nothing, even if the contents of the file is definitely different. I have also tested adding a new file, committing it then editing. Same issue, git status shows the file as changed but git diff shows nothing. If I download the changed file and run a diff locally then I get diff output.

I've had a look at all similar questions however I've double checked and something strange is definitely happening.

On one server (Solaris with git 1.8.1) I cloned the git repository then copied the .git folder into my existing live files. This worked perfectly, I could run git status, then git diff [filename] to check any files that were different.

On another server (Solaris with git 1.7.6) I'm doing exactly the same however git diff [filename] shows nothing, even if the contents of the file is definitely different. I have also tested adding a new file, committing it then editing. Same issue, git status shows the file as changed but git diff shows nothing. If I download the changed file and run a diff locally then I get diff output.

Source Link
Oliver P
  • 3.5k
  • 2
  • 18
  • 14
Loading