suchen

Heim  >  Fragen und Antworten  >  Hauptteil

sublime-text - Sublime Text 3中无法使用Git插件

新接触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'
怪我咯怪我咯2798 Tage vor594

Antworte allen(1)Ich werde antworten

  • 阿神

    阿神2017-04-24 16:02:34

    ST3中无法正常使用git插件,无法add。建议换sublime git ,我现在就是用这个。功能齐全更强大。是带界面的,比git插件强大很多。免费的,偶尔会弹出购买框,可以选择性无视。
    官网

    Antwort
    0
  • StornierenAntwort