Cheatography
https://cheatography.com
Lazygit essentials and how to write good commits.
This is a draft cheat sheet. It is a work in progress and is not finished yet.
Conventions
<type>[optional scope]: <description>
[optional body]
[optional footer(s)]
--- Options ---
fix: patches a bug in your codebase (this correlates with PATCH in Semantic Versioning).
feat: introduces a new feature to the codebase (this correlates with MINOR in Semantic Versioning).
BREAKING CHANGE: BREAKING CHANGE:, or appends a ! after the type/scope, introduces a breaking API change (correlating with MAJOR in Semantic Versioning). A BREAKING CHANGE can be part of commits of any type.
Others (eg: build, docs, refactor, test)
-- Examples --
feat: allow provided config object to extend other configs
BREAKING CHANGE: extends
key in config file is now used for extending other config files
--------------------------
feat(api)!: send an email to the customer when a product is shipped
------------------------- |
|
|
Lazygit
Move between windows: Arrows or Numbers or TAB
Keybindings: ?
Cancel: esc
Quit: q
c: commit
p: push
[1] Status
[2] Files
space: toggle staged/unstanged
d: delete a file
[3] Local Branches
n: new branch
[4] Commits
scroll using PgUp/PgDn (might be changed)
[5] Stash |
|
|
|