工作区和暂存区
GIT 和其他版本控制系统如 SVN 的不同之处就是 GIT 有暂存区的概念
Last updated
GIT 和其他版本控制系统如 SVN 的不同之处就是 GIT 有暂存区的概念
Last updated
Git is a distributed version control system.
Git is free software distributed under the GPL.
Git has a mutable index called stage.$ 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$ git commit -m "understand how stage works"
[master e43a48b] understand how stage works
2 files changed, 2 insertions(+)
create mode 100644 LICENSE$ git status
On branch master
nothing to commit, working tree clean