GIT is a distributed version control system. GIT is free software distributed under the GPL. GIT has a mutable index called stage.
然后,在工作区新增一个LICENSE文本文件(内容随便写)。
先用gIT status查看一下状态:
$ gIT status # On branch master # Changes not staged for commIT: # (use "gIT add <file>..." to update what will be commITted) # (use "gIT checkout -- <file>..." to discard changes in working directory) # # modified: readme.txt # # Untracked files: # (use "gIT add <file>..." to include in what will be commITted) # # LICENSE no changes added to commIT (use "gIT add" and/or "gIT commIT -a")
$ gIT status # On branch master # Changes to be commITted: # (use "gIT reset HEAD <file>..." to unstage) # # new file: LICENSE # modified: readme.txt #