Save This: Emacs Magit Command Cheat Sheet Updated on November 2, 2021 by Christopher Maiorana 1 Minutes, 17 Seconds to Read The Magit Git interface, for Emacs, provides both trivial and elaborate integration with Git right from within your Emacs text editor. Below, you will find a ready and easy cheatsheet for the basic (and more advanced) Git commands you can run from the Magit interface. The Very BasicsThe Staging Index (Applying Changes)Transient and DWIM “do what I mean” CommandsMore Git Resources Be sure to check out the Magit quick start guide. The Very Basics Here are the commands you will be using most of the time, for basic refreshing of Magit buffers and moving around in the interface: gRefresh the current buffer <tab>Toggle selection at point <return>Visit the item at point C-h mShow all key bindings Remember, you can always press h for a help screen from within the Magit interface. The Staging Index (Applying Changes) Now, it’s time to add changes, stage or “unstage”, moving content in and out of your Git staging index: KeyCommandaApplyvReversekDiscardsStageuUnstageSStage allUUnstage all Transient and DWIM “do what I mean” Commands These commands may look familiar to anyone who has used Git for a while. They will provide most of the day-to-day functionality that most Git users will require to get their work done. KeyCommandbBranchcCommitCClonedDiffDDiff (change)eEdiff (dwim)EEdifffFetchFPullIInitlLogLLog (change)mMergeMRemotePPushrRebasetTagXResetzStash More Git Resources Be sure to check out other Git resources available in the support center, like our complete Git fundamentals guide, get up and running with Git in a few minutes. If you don’t need cPanel, don't pay for it. Only pay for what you need with our scalable Cloud VPS Hosting. CentOS, Debian, or Ubuntu No Bloatware SSH and Root Access VPS vs cloud hosting? Which one is right for you? Share this Article CM Christopher Maiorana Content Writer II Christopher Maiorana joined the InMotion community team in 2015 and regularly dispenses tips and tricks in the Support Center, Community Q&A, and the InMotion Hosting Blog. More Articles by Christopher Related Articles Emacs Web Mode For Code Mastery Choosing Emacs vs. Vim Using Key Commands in Emacs Using Emacs Tramp For SSH (Emacs SSH) Emacs Auto Save and Auto Revert Modes For File Recovery CamelCase Code Helpers in Emacs Be Case Sensitive With Case Conversion in Emacs Emacs Keyboard Macros To Speed Up Your Workflow How To Install Emacs on Ubuntu 20 Cloud Server Save Keyboard Macros as Functions in Emacs