Skip to content

Instantly share code, notes, and snippets.

@re5et
Created January 31, 2013 23:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save re5et/4687718 to your computer and use it in GitHub Desktop.
Save re5et/4687718 to your computer and use it in GitHub Desktop.
magit quick stash
(defun magit-quick-stash ()
"Immediately stash with mesage
WIP on branchname: short-sha commit-message"
(interactive)
(magit-stash ""))
(add-hook
'magit-status-mode-hook
(lambda ()
(define-key magit-mode-map (kbd "Z") 'magit-quick-stash)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment