新接觸Sublime Text 3工具,看到有git插件便安裝上去了,今天想提交一些程式碼,但是不知道怎麼配置這個git,按照github上的wiki也沒有成功使用。
下面是重啟ST3後開啟Ctrl+`看到的程式碼:
SyntaxError: invalid syntax
reloading plugin sublime-text-git-master.history
Traceback (most recent call last):
File "D:\Program Files\Sublime Text 3\sublime_plugin.py", line 73, in reload_plugin
m = importlib.import_module(modulename)
File "X/importlib/__init__.py", line 88, in import_module
File "<frozen importlib._bootstrap>", line 1577, in _gcd_import
File "<frozen importlib._bootstrap>", line 1558, in _find_and_load
File "<frozen importlib._bootstrap>", line 1525, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 586, in _check_name_wrapper
File "<frozen importlib._bootstrap>", line 1023, in load_module
File "<frozen importlib._bootstrap>", line 1004, in load_module
File "<frozen importlib._bootstrap>", line 562, in module_for_loader_wrapper
File "<frozen importlib._bootstrap>", line 869, in _load_module
File "<frozen importlib._bootstrap>", line 313, in _call_with_frames_removed
File "C:\Users\Administrator\AppData\Roaming\Sublime Text 3\Packages\sublime-text-git-master\history.py", line 5, in <module>
from git import GitTextCommand, GitWindowCommand, plugin_file
ImportError: No module named 'git'
ST3中無法正常使用git插件,無法add。建議換sublime git ,我現在就是用這個。功能齊全更強大。是有介面的,比git插件強大很多。免費的,偶爾會彈出購買框,可以選擇性無視。
官網