Hi Victor,
I think you can do the following steps: cd ~/bigtop ## let's say you like to add a new file Lei.txt # do diff, there is no difference :bigtop lei$ git diff # create a dummy new file :bigtop lei$ echo "Lei Zou" > Lei.txt :bigtop lei$ git diff # add the file to local repository :bigtop lei$ git add -N Lei.txt # do the diff and find out the difference :bigtop lei$ git diff diff --git a/Lei.txt b/Lei.txt index e69de29..53503b0 100644 --- a/Lei.txt +++ b/Lei.txt @@ -0,0 +1 @@ +Lei Zou :bigtop lei$ I hope it helps. Lei Zou On Mon, Apr 9, 2012 at 12:44 AM, Victor Chugunov <[email protected]> wrote: > Roman, > can you please tell the steps to do a git diff on the new files > I tried git add <filename>, git add -N <filename> and after git diff > <filename> > and nothing was working > after doing git stash I've lost all my changes > > Victor
