9ddd118a49
Replace standard iOS components with a terminal-inspired design: monospaced typography throughout, flat square borders, Emacs-style modeline header, filetag keyword format (:kw1:kw2:), and custom flat form replacing the iOS Form component. Set Emacs as default theme. Replace non-Emacs demo notes with Emacs ecosystem content and rename screenshots.
1.1 KiB
1.1 KiB
Magit: The Git Interface
Why Magit
Magit is widely considered the best Git interface ever built. It exposes the full power of Git through a transient-driven UI that requires no memorization of flags.
Essential commands
| Key | Action |
|---|---|
| C-x g | Open Magit status |
| s / u | Stage / unstage hunk |
| c c | Commit |
| P p | Push to upstream |
| F p | Pull from upstream |
| b b | Switch branch |
| b c | Create and switch branch |
| l l | Show log |
| d d | Diff working tree |
Forge: GitHub/GitLab from Emacs
(use-package forge
:after magit)
Lets you open PRs, review issues, and post comments without leaving Emacs.
Configuration
(use-package magit
:bind ("C-x g" . magit-status)
:config
(setq magit-display-buffer-function
#'magit-display-buffer-same-window-except-diff-v1))