magit.el ã試ãã¦ã¿ã
egg.elãã¾ãã¡ã¼ã¨æ¸ããã¨ããã
@gom egg.elãå«ãªãmagit.elã§ã©ãï¼ä¿ºçã«ã¯ãã£ã¡ã®ã使ãããããã©ã
http://twitter.com/rubikitch/statuses/1901340067
㨠id:rubikitch ããã«æãã¦ãããã¾ããããããã¨ããããã¾ãã
ã¨ããããã§ãæ©é試ãã¦ã¿ãã
ã¤ã³ã¹ãã¼ã«
makeããã®ã
$ git clone git://github.com/jdhuntington/magit.git $ ./autogen.sh $ ./configure --prefix=$HOME/lisp/magit $ make $ sudo make install
.emacsã®æ¸ãæã
(add-to-list 'load-path "~/lisp/magit/share/emacs/site-lisp/") (require 'magit)
git status
statusãããã¡ä¸ã§ãã¼æä½ãè¡ãã
ãã¼æä½ã¯ä»¥ä¸ã®éãã§ã大ä½ã®æä½ã¯ã§ãã模æ§ã
éãbranchã«pushããã¨ããrefspecããã¡ããã¡ãããã辺ãã¯ã©ããªã£ã¦ãã®ãä¸æã
M-x magit-status
- TAB: ã»ã¯ã·ã§ã³ã®è¡¨ç¤ºãåãæ¿ãã
- M-1, M-2, M-3, M-4: ã»ã¯ã·ã§ã³è¡¨ç¤ºã®åãæ¿ã
- Section: Untracked file
- s: ãã¡ã¤ã«ãã¹ãã¼ã¸ã«è¿½å ãã(git add)
- i: .gitignoreã«ãã¡ã¤ã«ã追å ãã
- C-u i: ignoreãã¡ã¤ã«ãæå®ãã
- I: .git/info/excludeã«ãã¡ã¤ã«ã追å ãã
- k: ãã¡ã¤ã«ãåé¤ãã*1
- Section: Unstaged Changing / Staged Changing
- s: ãã¡ã¤ã«ãã¹ãã¼ã¸ã«è¿½å ãã(git add)
- S: å ¨ãã¡ã¤ã«ãã¹ãã¼ã¸ã«è¿½å ãã
- u: ãã¡ã¤ã«ãã¹ãã¼ã¸ããéãã
- U: å ¨ãã¡ã¤ã«ãã¹ãã¼ã¸ããéãã
- k: å¤æ´ãåãæ¶ã
- c: ã³ããããã°ãæ¸ã
- C: ã³ããããã°ããã§ã³ã¸ãã°å½¢å¼ã§æ¸ãï¼
- C-c C-c: ã³ããããã(git commit)
- C-c C-a: ã³ããããããç´ã(git commit --amend)
- Log
- l: ãã°ä¸è¦§ã表示ãã(git log)
- L: 詳細ãã°ã®ä¸è¦§ã表示ãã(git log --stat)
- ãã°ãé¸æã㦠RET: ãã°ã®è©³ç´°ã表示ãã(git log -p)
- a: ã³ããããä»ã®ãã©ã³ãã«é©ç¨ãã(git cherry-pick & NOT commit)
- A: ã³ããããä»ã®ãã©ã³ãã«é©ç¨ããã³ããããã(git cheery-pick & git commit)
- v: ã³ããããåãæ¶ã(git revert)
- C-w: ã³ãããã®sha1ããã·ã¥ãã³ãã¼ãã
- =: ä»ã®ã³ãããã¨ã®å·®åã表示ãã
- .: ã³ãããããã¼ã¯ãã
- h or H: ä»ã®HEADã¾ã§ã®ãã°ã表示ãã
- d: ã¯ã¼ãã³ã°ã³ãã¼ããããã³ãããã¾ã§ã®å·®åã表示ãã(git diff)
- D: 2ã¤ã®ã³ãããã®å·®åã表示ãã
- t or T: ã¿ã°ãä½æãã(git tag)
- x: ã³ããããåãæ¶ã(git reset --soft)
- X: ã³ãããã¨å¤æ´ãåãæ¶ã(git reset --hard)
- Stash
- z: stashãä½æãã(git stash)
- a: stashãé©ç¨ãã(git stash apply)
- A: stashãpopãã(git stash pop)
- k: stashãdropãã(git stash drop)
- b: ãã©ã³ããåãæ¿ãã(git checkout)
- B: æ°è¦ãã©ã³ããä½æãã¦åãæ¿ãã(git checkout -b)
- w: wazzup?
- m or M: ãã¼ã¸ãè¡ã
- X: æåãã¼ã¸ãä¸æ¢ãã
- e: resolved conflict?
- R: rebase
- P: push (default remote, current branch)
- f: git remote update
- F: pull
- git svn
å¾åã¯ç²ãã¦ãã¾ã£ãã®ã§ããªãé©å½ã§ãã
å¿
è¦ãªã³ãã³ãã¯æ¼ããããã¦ãã¦ãããæãã«æ±ãããã
*1:ç©ççã«åé¤ãããããã