Git commands (start with g
):
SHIFT
for selecting portions of the file to stage.
bb
checkout a branch
,,
commit a file in the commit buffer
e
opens ediff
Key Binding |
Description |
SPC g b |
open a magit blame |
SPC g B |
quit magit blame |
SPC g c |
commit changes |
SPC g C |
checkout branches |
SPC g d |
show diff prompt |
SPC g D |
show diff against current head |
SPC g e |
show ediff comparison |
SPC g E |
show ediff against current head |
SPC g f |
show fetch prompt |
SPC g F |
show pull prompt |
SPC g H c |
clear highlights |
SPC g H h |
highlight regions by age of commits |
SPC g H t |
highlight regions by last updated time |
SPC g i |
git init a given directory |
SPC g I |
open helm-gitignore |
SPC g l |
open a magit log |
SPC g L |
display the log for a file |
SPC g P |
show push prompt |
SPC g s |
open a magit status window |
SPC g S |
stage current file |
SPC g m |
display the last commit message of the current line |
SPC g t |
launch the git time machine |
SPC g U |
unstage current file |
SPC j d |
dired jump |