作者hjmeric (Jimmy)
看板Editor
標題[emcs] 關於git-emacs.el
時間Tue May 7 17:39:21 2013
大家好,
這幾天想在emacs上面用git.
google到的方法是:
git clone github上面的git-emacs
實作之後可以執行部分git指令
像是 M-x git-status
但是像是 M-x git--symbolic-ref emacs就不認識
而我看git-emacs.el的source code
裡面確實有定義,
像這樣:
(略)
(749)(defun git--symbolic-ref (arg)
(略)
也有許多裡面定義的函數我沒辦法使用,
請問我是不是少做了什麼事?
這裡附上github上的原始檔連結
https://github.com/tsgates/git-emacs/blob/master/git-emacs.el
謝謝各位。
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.51.102
1F:推 YuiHirasawa:試試看Magit? 05/07 18:21
2F:→ hjmeric:也遇到一樣的問題耶 05/07 18:35
3F:→ hjmeric:其實我主要的問題是 M-x git-status 會出錯 05/07 18:36
4F:→ hjmeric:像這樣fatal: bad default revision 'HEAD' 05/07 18:36
5F:→ hjmeric:但是用terminal執行就沒有問題 05/07 18:37
6F:→ letoh:這個實在寫的不太好...相依性一堆又不處理好XD 05/07 20:39
7F:→ letoh:自己把缺的東西 load 進來後,跑 git-status 沒什麼問題 05/07 20:42
8F:→ letoh:大概就是一些 fontface 爛掉要修一修XD 05/07 20:43
9F:→ letoh:我猜可能是你沒裝好,可以貼一下你的安裝設定嗎? 05/07 21:14
10F:→ hjmeric:你好,請問安裝設定是指.emacs嗎? 05/07 23:10
11F:→ hjmeric:還是load-path 下的資料? 05/07 23:13
12F:推 dryman:如果emacs function沒有在裡面定義(interactive)那你就不 05/08 03:15
13F:推 dryman:能用M-x 呼叫他... 05/08 03:15
14F:→ hjmeric:後來發現有個問題是 因為我連/ssh:...的關係 05/08 22:33
15F:→ awert:可以考慮看看 magit,用 ssh 沒遇到問題 05/11 01:28
16F:→ hjmeric:請問要怎麼add? 我下M-x magit-status 後不知道要下什麼 05/11 02:26
17F:→ hjmeric:magit可以開gitk嗎? 05/11 02:27
19F:→ hjmeric:謝謝! 05/13 14:42