The main entry point of magit is M-x magit-status
.
Once in the Magit buffer, you can use the following keys:
s
: Stage a changec
: Commitk
: Discard a change. Delete a file when untracked. Delete a
stash. Unstage a staged change.l
: log. l
, short log, L
long log+
: enlarge hunk-
: shrink hunkP
: PushF
: PullIn the magit status buffer, you can use 1
, 2
, 3
, 4
to change
the amount of info that can be visualised.
C-x C-j
: Jump to file from status to dired.C-c C-e
: On a hunk, jump to file at that change.e
: Extend current HEAD coomita
: Amend the commit messager
: Rewords
: Squash against current commit.magit-file-popup
: Displays a popup where you can execute magit
commands on the current file.magit-push
: Push changes.magit-log
: View log for revs input by user.http://magit.github.io/documentation.html