GIT新手:如何检查我的情况有哪些变化?

时间:2011-10-17 07:10:59

标签: git github git-svn

我是GIT的新手。我正在Ubuntu机器上开发项目。

在我的项目根路径中,当键入git status时,我在终端窗口中得到以下输出:

# 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

但是,我不知道这些文件的更改/修改内容,如何检查这两个文件的更改是什么?

1 个答案:

答案 0 :(得分:8)

跑步:

 git diff

如果你想从这些命令获得漂亮的彩色输出,那么值得设置配置选项color.ui,如:

git config --global color.ui auto