| Evil Key | Vanilla Key | Description |
|---|---|---|
| SPC gg | C-c vg | Open magit-status in current project |
| There is also the :magit ex command for evil users. |
- To close a buffer or window you should use `q`
- To close a popup (transients) you should use `C-g`
| Evil Key | Vanilla Key | Description |
|---|---|---|
| SPC gs | C-c vs | Stage the current hunk in the current file |
| SPC gr | C-c vr | Revert the current hunk in the current file |
| SPC gB | C-c vB | Interactively blame a file |
- Everything in the status buffer is interactive. You can hit `RET` or `TAB` on almost anything in the buffer.
| Key | Description |
|---|---|
| TAB | Toggle the current heading |
| RET | Expand an item |
| s | Stage the current file/hunk |
| u | Unstage the current item |
| S | Stage all changes |
| U | Unstage all changes |
| cc | Commit all staged changes |
| ll | Open up the git log |
| Key | Description |
|---|---|
| bb | Checkout branch |
| bc | Create new branch |
| bx | Delete branch |
| bs | Create a new branch from the last commit |
*** Merge
| Key | Description |
|---|---|
| mm | Merge another branch into the current branch |
| mi | Merge the current branch into another branch |
*** Rebase
| Key | Description |
|---|---|
| rp | Rebase onto the default remote |
| re | Rebase onto a different remote or branch |
| Key | Description |
|---|---|
| Ma | Add a remote |
| Mx | Remove a remote |
| Mr | Rename a branch |
| MC | Configure a remote |
*** Fetch
| Key | Description |
|---|---|
| fp | Fetch default remote |
| fe | Fetch a different remote |
| fa | Fetch all remotes |
*** Pull
| Key | Description |
|---|---|
| Fp | Pull the default remote |
| Fe | Pull from a different remote |
*** Push
| Key | Description |
|---|---|
| pp | Push to the default remote |
| pe | Push to a different remote |
The git time machine allows you to quickly go through a file’s commits and explore changes over time interactively.
| Evil Key | Vanilla Key | Description |
|---|---|---|
| SPC gt | C-c vt | Toggle the git time machine on the current file |
| C-j | C-n | Show the next revision |
| C-k | C-p | Show the previous revision |
| q | Quit the time machine |