Git¶
General¶
Concepts¶
- Working tree
-
The files that you see in your editor, that lie on your disk.
- Staging area
-
The files that you have run
git addfor, but not yetgit commit-ed. - Index
-
The files that you have committed and associated with a revision.
See also
Environment variables¶
| Name | Description |
|---|---|
GIT_COMMITTER_DATE |
Override the commit date of the next commit. |
GIT_AUTHOR_DATE |
Override the author date of the next commit. This can also be accomplished with git commit --date. |
Reset¶
| Mode | Working tree | Staging area | Index |
|---|---|---|---|
| Soft | Unchanged | Unchanged | Reset |
| Mixed (Default) |
Unchanged | Reset | Reset |
| Hard | Reset | Reset | Reset |