Prerequisites

You need the following on macOS before you start:

  • Homebrew installed (package manager for macOS).
  • emacs installed
  • git installed

If you do not have Homebrew yet, install it from the official Homebrew website before proceeding.

First steps using Magit with Emacs

  1. Open Emacs and install Magit:
1
M-x package-install RET magit-gitflow RET
  1. Open Magit with:
1
M-m g
  1. To test Magit:
    • After modifying your source code, stash your changes with s and commit with c.
    • Write a commit message and quit with C-c and C-c
    • Push your changes with P and p