(git) added section on fixup
This commit is contained in:
27
git.md
27
git.md
@@ -1,25 +1,36 @@
|
|||||||
# summary on some steps in the git workflow
|
# git
|
||||||
|
|
||||||
|
This file contains tips and tricks to remember and documents some of my findings.
|
||||||
|
|
||||||
|
|
||||||
## Table of contents
|
## Table of contents
|
||||||
|
|
||||||
- [glossary](#glossary)
|
<!--toc:start-->
|
||||||
- [branches](#branches)
|
- [git](#git)
|
||||||
|
- [Table of contents](#table-of-contents)
|
||||||
|
- [glossary](#glossary)
|
||||||
|
- [branches](#branches)
|
||||||
- [create a branch](#create-a-branch)
|
- [create a branch](#create-a-branch)
|
||||||
- [submodules](#submodules)
|
- [submodules](#submodules)
|
||||||
- [stash](#stash)
|
- [stash](#stash)
|
||||||
- [removing files from index](#removing-files-from-index)
|
- [fixup](#fixup)
|
||||||
- [philosophies](#philosophies)
|
- [removing files from the index](#removing-files-from-the-index)
|
||||||
|
- [philosophies](#philosophies)
|
||||||
- [merge](#merge)
|
- [merge](#merge)
|
||||||
- [rebase](#rebase)
|
- [rebase](#rebase)
|
||||||
|
- [squash](#squash)
|
||||||
|
<!--toc:end-->
|
||||||
|
|
||||||
|
|
||||||
## glossary
|
## glossary
|
||||||
|
|
||||||
| term | description |
|
| term | description |
|
||||||
| :--- | :---------- |
|
| :--- | :---------- |
|
||||||
| `^` | one commit back (in history), use `<HEAD/branch/commit_hash>^` |
|
|
||||||
| head | pointer to branch (usually latest commit, unless detached=pointer to specific commit) currently checked out locally |
|
| head | pointer to branch (usually latest commit, unless detached=pointer to specific commit) currently checked out locally |
|
||||||
| index | keeps track of `staged/cached` (with git add) changes |
|
| index | keeps track of `staged/cached` (with git add) changes |
|
||||||
| working tree | local file working directory |
|
| working tree | local file working directory |
|
||||||
|
| `^` | one commit back (in history), use `<[HEAD|branch|commit_hash]>^` |
|
||||||
|
| `~<n>` | n commits back (in history), use `<[HEAD|branch|commit]~2` |
|
||||||
|
|
||||||
|
|
||||||
## branches
|
## branches
|
||||||
|
|||||||
Reference in New Issue
Block a user