GIT新手:如何检查我的情况发生了什么变化?
我是 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
但是,我不知道这些文件已更改/修改了什么,如何检查更改是什么已经对这两个文件做了?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只需运行:
如果您想从此类命令中获得漂亮的彩色输出,则值得设置配置选项
color.ui
,如下所示:Just run:
If you want nice coloured output from such commands, it's worth setting the config option
color.ui
, as in: