From 25214e08cf368b2b6a7cffa8edbd42f82268f4a5 Mon Sep 17 00:00:00 2001 From: scbj Date: Thu, 5 Jun 2025 10:00:54 +0200 Subject: [PATCH] (git) added section on `fixup` --- git.md | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/git.md b/git.md index f6c54f8..0632b09 100644 --- a/git.md +++ b/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 -- [glossary](#glossary) -- [branches](#branches) - - [create a branch](#create-a-branch) -- [submodules](#submodules) -- [stash](#stash) -- [removing files from index](#removing-files-from-index) -- [philosophies](#philosophies) - - [merge](#merge) - - [rebase](#rebase) + +- [git](#git) + - [Table of contents](#table-of-contents) + - [glossary](#glossary) + - [branches](#branches) + - [create a branch](#create-a-branch) + - [submodules](#submodules) + - [stash](#stash) + - [fixup](#fixup) + - [removing files from the index](#removing-files-from-the-index) + - [philosophies](#philosophies) + - [merge](#merge) + - [rebase](#rebase) + - [squash](#squash) + + ## glossary | term | description | | :--- | :---------- | -| `^` | one commit back (in history), use `^` | | 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 | | working tree | local file working directory | +| `^` | one commit back (in history), use `<[HEAD|branch|commit_hash]>^` | +| `~` | n commits back (in history), use `<[HEAD|branch|commit]~2` | ## branches