2016年1月27日 星期三

emacs magit workflow

http://ergoemacs.org/emacs/emacs_magit-mode_tutorial.html

(Install magit from elpa/melpa first)


Run once under terminal/command prompt:


  1. git clone https://github.com/AAA/BBB.git & cd BBB(if required)
    • if start from scratch, run "git init" instead

Run as you change code / debug under emacs :

  1. M-x magit-status (to bring up magit)
  2. S (= git add .)
  3. c c MMM C-c C-c (= git commit -m "MMM")
  4. P p (= git push origin master)

沒有留言:

張貼留言