首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件开发 >

git status简略用法

2013-02-25 
git status简单用法git status可以用来查看仓库的状态,这个命令是一个很有用的命令,在用GIT的过程中,会出

git status简单用法

git status可以用来查看仓库的状态,这个命令是一个很有用的命令,在用GIT的过程中,会出现各种意想不到的情况,原因是我们反复提交和修改。git status可以帮助我们快速的知道当前的GIT状态。命令如下:

[root@localhost gender]# git commit -m"no modify"(此处省去95个字) [root@localhost gender]# git status# On branch master# Your branch is ahead of 'origin/master'by 1 commit.#nothing to commit (working directory clean)[root@localhost gender]#

现在就是很干净的状态了。


有一个问题需要注意,就是如果Changedbut not updated之后,执行git add ./ ,但之后又修改了这个文件,那么会同时出现Changedbut not updated和Changes to becommitted。

热点排行