git查看本地仓库状态
git status 命令
$ git statusOn branch master # 当前本地仓库是在master分支里面,git默认分支就是在master分支里面No commits yet # 当前还没提交任何东西nothing to commit (create/copy files and use "git add" to track) # 还没什么东西需要提交
我在文件库里面新添加了hello.txt之后,再使用git status 查看
$ git statusOn branch masterNo commits yetUntracked files: # 未被追踪的问题(use "git add <file>..." to include in what will be committed)hello.txtnothing added to commit but untracked files present (use "git add" to track)
