; magit (setq load-path (cons (expand-file-name "~/.emacs.d/site-lisp/dash") load-path)) (load-library "~/.emacs.d/site-lisp/dash/dash.el") (setq load-path (cons (expand-file-name "~/.emacs.d/site-lisp/with-editor") load-path)) (load-library "~/.emacs.d/site-lisp/with-editor/with-editor.el") (setq load-path (cons (expand-file-name "~/.emacs.d/site-lisp/magit") load-path)) (load-library "~/.emacs.d/site-lisp/magit/magit.el")
commit e87fe8180b6513450a110b7ad4fed887895720c3 Author: Jonas Bernoulli <jonas@bernoul.li> Date: Thu Jan 28 21:01:06 2016 +0100 move with-editor to its own repository
binding | command | remark |
---|---|---|
M-x: magit-status | magit-mode 起動 | |
h | magit のヘルプを表示 | |
s | git add | 選択中のファイルを stage に追加(commitの対象に)する |
S | 全ファイルを stage に追加する | |
u | ファイルを stage から降ろす | |
U | 全ファイルを stage から降ろす | |
c | commit log を書く | |
C-c C-c | git commit | commit する |
C-c C-a | git commit --amend | commit をやり直す |
P | git push | commit した変更を push する |
l | git log | log を表示する。 l-l でshort log, l-L で verbose な log を表示する |
z | git stash | stash を作成する |
a | git stash apply | stash を適用(apply)する |
A | git stash pop | stash を pop (最新の stash を適用し、その stash を list から削除)する |
k | git stash drop | stash を drop(最新の stash 1つを list から削除)する |
branch-manager を起動する (26/11/2015 以降、従来の magit-branch-manager に代わり、新たな I/F が "y" で起動するようになった) | ||
f f | git fetch (Current) | |
f o | git fetch (commit) | |
f a | git fetch (all remotes) | |
m | git merge | |
F | git pull | |
M-x: magit-reflog | git reflog | そのリポジトリ上で行った git の操作履歴を表示する |
d | git diff | ローカルの編集差分の表示 |
r | git rebase | |
t | git tag | tag を作成する |
T |