Rudy’s OBTF Rudolf Adamkovič

Home / Emacs / Magit / Tips


How to pull with a dirty work tree

If the remote changes do not overlap with the local ones, there is no need to stash, pull, and un-stash. Instead, in magit-status:

  1. Fetch (f p) the remote changes.
  2. Commit the local changes as normal (c c).
  3. Pull (F p) to merge the fetched changes.
  4. Push (P p).

© 2025 Rudolf Adamkovič under GNU General Public License version 3.
Made with Emacs and secret alien technologies of yesteryear.