From 22f7cfc806c9a47b3bde69e6c12da97f88e7c525 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 27 Apr 2020 14:31:32 +0200 Subject: emacs: turns out that magit can indeed stage by patches MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before knowing this I had to resort to the CLI and manually `git stash -p` all the way. Turns out that magit is actually able to stage particular changes from a specific files, so this whole workflow is no longer needed, and hence the warning on the documentation is no longer valid. Signed-off-by: Miquel Sabaté Solà --- .emacs.d/init.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.emacs.d/init.org') diff --git a/.emacs.d/init.org b/.emacs.d/init.org index 243dfea..4aeb045 100644 --- a/.emacs.d/init.org +++ b/.emacs.d/init.org @@ -1135,7 +1135,7 @@ into Evil: @@html:C-c +@@ for increasing a number, and * Git -[[https://magit.vc/][Magit]] is a git porcelain inside GNU Emacs. I've grown really fond of it, since it makes some git operations dead easier and faster to perform (e.g. rebasing). Moreover, some other commands are way prettier and more useful with Magit (e.g. the =log= command, staging, showing diffs, etc). So right now my situation is that I use Magit most of the time, and bare git when I want to do something fishy or very specific (e.g. =git stash -p=). Some notes on this setup: +[[https://magit.vc/][Magit]] is a git porcelain inside GNU Emacs. I've grown really fond of it, since it makes some git operations dead easier and faster to perform (e.g. rebasing). Moreover, some other commands are way prettier and more useful with Magit (e.g. the =log= command, staging, showing diffs, etc). So right now my situation is that I use Magit most of the time, and bare git when I want to do something fishy. Some notes on this setup: 1. I set @@html:C-x g@@ as a binding for =magit-status= and @@html:C-c l@@ as a binding for =magit-log-buffer-file=. These are the most useful =magit= entries. 2. I install =evil-magit=, which could've been replaced by =evil-collection= but it really falls short. Thus, I keep this package and insist on my bindings around moving through windows. -- cgit v1.2.3