查看当前的工作状态:git status On branch master:现在位于master分支里面nothing to commit, working tree clean:没有需要提交的文件,当前目录是干净的,即,在上一次提交过后,到目前为止,此目录下的内容没有被改变过 再新建一个文件,不加入暂存区,查看状态 提示有未跟踪文件,即有新添加,但并没有加到暂存区或者提交的文件 提交到暂存区后,再查看状态 git reset HEAD <file> : 恢复暂存区域,因为刚刚提交了一个New
设置ubuntu 下git 的用户名和邮箱 摘自 慢慢修远路,上下求索心http://yanshaozhi.iteye.com/blog/386752 虽然我没看怎么明白 但我用第一总方法就设置好了,设置好了是不会有提示的. 设置好以后就用 :git config --list 命令查看. Guides: Tell git your user name and email address Git needs to know your username and email address to