Leem
Leem

Reputation: 18318

GIT newbie: how to check what has been changed in my case?

I am a newbie in GIT. I am developing project on a Ubuntu machine.

In my project root path, when type git status , I got the following output on terminal window:

# On branch develop
# Changed but not updated:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#   modified:   Rakefile
#   modified:   db/schema.rb

But, I do not know what has been changed/modified on those files, how to check what are the changes has been made on the two files?

Upvotes: 3

Views: 334

Answers (1)

Mark Longair
Mark Longair

Reputation: 467571

Just run:

 git diff

If you want nice coloured output from such commands, it's worth setting the config option color.ui, as in:

git config --global color.ui auto

Upvotes: 8

Related Questions