aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/development
diff options
context:
space:
mode:
Diffstat (limited to 'src/development')
-rw-r--r--src/development/git.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/development/git.md b/src/development/git.md
index 34c5baa..55748f4 100644
--- a/src/development/git.md
+++ b/src/development/git.md
@@ -138,6 +138,7 @@ the same repository (shared .git folder).
git log -p <file> ......... show commit history + diffs for <file>
git log --oneline <file> .. show commit history for <file> in compact format
+ git log -nN ............... show last N history entries
```
## Diff & Commit Info
@@ -216,6 +217,19 @@ the same repository (shared .git folder).
submodule diff
```
+## Bisect
+```markdown
+ git bisect start BAD GOOD ........ start bisect process in range BAD..GOOD commits
+ git bisect good .................. mark current commit as good
+ git bisect bad ................... mark current commit as bad
+
+ # Automate bisecting.
+ git bisect run <script> <args> ... run script to automate bisect process
+ exit 0 - mark commit as good
+ exit 1 - mark commit as bad
+ exit 125 - skip commit (eg doesn't build)
+```
+
## Inspection
```markdown
git ls-tree [-r] <ref> .... show git tree for <ref>, -r to recursively ls sub-trees