{"action":"opened","issue":{"url":"https://api.github.com/repos/hehongwei44/my-blog/issues/14","labels_url":"https://api.github.com/repos/hehongwei44/my-blog/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/hehongwei44/my-blog/issues/14/comments","events_url":"https://api.github.com/repos/hehongwei44/my-blog/issues/14/events","html_url":"https://github.com/hehongwei44/my-blog/issues/14","id":112567215,"number":14,"title":" git版本控制文件状态简览","user":{"login":"hehongwei44","id":1640994,"avatar_url":"https://avatars.githubusercontent.com/u/1640994?v=3","gravatar_id":"","url":"https://api.github.com/users/hehongwei44","html_url":"https://github.com/hehongwei44","followers_url":"https://api.github.com/users/hehongwei44/followers","following_url":"https://api.github.com/users/hehongwei44/following{/other_user}","gists_url":"https://api.github.com/users/hehongwei44/gists{/gist_id}","starred_url":"https://api.github.com/users/hehongwei44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hehongwei44/subscriptions","organizations_url":"https://api.github.com/users/hehongwei44/orgs","repos_url":"https://api.github.com/users/hehongwei44/repos","events_url":"https://api.github.com/users/hehongwei44/events{/privacy}","received_events_url":"https://api.github.com/users/hehongwei44/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hehongwei44/my-blog/labels/git","name":"git","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-21T11:35:21Z","updated_at":"2015-10-21T11:35:21Z","closed_at":null,"body":"`git status` 命令的输出十分详细，但其用语有些繁琐。 如果你使用 `git status -s` 命令或 `git status --short` 命令，你将得到一种更为紧凑的格式输出。 运行 `git status -s` ，状态报告输出如下：\r\n\t\r\n\t$ git status -s\r\n\t M README\r\n\tMM Rakefile\r\n\tA  lib/git.rb\r\n\tM  lib/simplegit.rb\r\n\t?? LICENSE.txt\r\n\r\n新添加的未跟踪文件前面有 `??` 标记\r\n\r\n新添加到暂存区中的文件前面有 `A` 标记\r\n\r\n修改过的文件前面有 `M` 标记。 你可能注意到了 `M` 有两个可以出现的位置，出现在`右边`的 `M` 表示该文件被修改了但是还没放入暂存区，出现在靠`左边`的 `M` 表示该文件被修改了并放入了暂存区。\r\n\r\n 例如，上面的状态报告显示： `README` 文件在工作区被修改了但是还没有将修改后的文件放入暂存区,`lib/simplegit.rb` 文件被修改了并将修改后的文件放入了暂存区。 而 `Rakefile` 在工作区被修改并提交到暂存区后又在工作区中被修改了，所以在暂存区和工作区都有该文件被修改了的记录。"}}