【问题标题】:terminal's git not working终端的 git 不工作
【发布时间】:2015-06-01 14:26:49
【问题描述】:
AppledeMacBook-Pro:a apple$ git
2015-06-01 22:03:36.309 xcodebuild[1136:25124] CPCodePilotPlugin.m:23 +    [CPCodePilotPlugin load]; CODE PILOT: CURRENT_XCODE_VERSION: 0     CURRENT_XCODE_REVISION: 0
Jun  1 22:03:36 AppledeMacBook-Pro.local xcodebuild[1136] <Warning>:     CGSConnectionByID: 0 is not a valid connection ID.
Jun  1 22:03:36 AppledeMacBook-Pro.local xcodebuild[1136] <Warning>: Invalid Connection ID 0
** INTERNAL ERROR: Uncaught exception **
Exception: Error (1000) creating CGSWindow
Stack:
  0  0x00007fff85a78024 __exceptionPreprocess (in CoreFoundation)
  1  0x00007fff87f9276e objc_exception_throw (in libobjc.A.dylib)
  2  0x00007fff85a77eed +[NSException raise:format:] (in CoreFoundation)
  3  0x00007fff8b208306 _NXCreateWindowWithStyleMask (in AppKit)
  4  0x00007fff8b2080a2 _NSCreateWindow (in AppKit)
...
...
 31  0x0000000109e99ee4 __46-[XCPluginManager loadPluginBundle:forDomain:]_block_invoke (in DevToolsCore)
 32  0x00000001082698f2 DVTInvokeWithFailureHint (in DVTFoundation)
 33  0x0000000109e99c6c -[XCPluginManager loadPluginBundle:forDomain:] (in DevToolsCore)
 34  0x0000000109e99704 __46-[XCPluginManager findAndLoadPluginsInDomain:]_block_invoke (in DevToolsCore)
 35  0x000000010825081d -[DVTPlugInManager _allowNonApplePlugInsFromDescriptors:error:] (in DVTFoundation)
 36  0x0000000108250a9e -[DVTPlugInManager _checkNonApplePlugIns] (in DVTFoundation)
 37  0x0000000108250b14 -[DVTPlugInManager initializePlugIns:] (in DVTFoundation)
 38  0x00000001087d77e4 _IDEInitializeOtherPlugInStuff (in IDEFoundation)
 39  0x00000001087d8bbc IDEInitialize (in IDEFoundation)
 40  0x0000000108ddd02f -[Xcode3CommandLineBuildTool run] (in Xcode3Core)
 41  0x00000001080949be (in xcodebuild)
 42  0x00007fff89c1d5c9 start (in libdyld.dylib)

sh: line 1:  1139 Abort trap: 6 /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk macosx -find     git 2> /dev/null
git: error: unable to find utility "git", not a developer tool or in PATH

不知道问题出在哪里,希望看到的人能帮帮我,非常感谢

我的 macbook pro -> OS X Yosemite 版本:10.10.3

【问题讨论】:

  • 要么 git 没有安装,要么不在你的路径中......
  • 看起来关键错误消息是 git:错误:无法找到实用程序“git”,不是开发人员工具或在 PATH 中 - 尝试apple.stackexchange.com/q/18470

标签: git terminal


【解决方案1】:

我也在使用 Mac,我记得我使用过 Xcode -&gt; Preferences -&gt; Downloads -&gt; Install Command Line Tools。此操作为我提供了正确的 git 工具,您可以尝试一下。

【讨论】:

    猜你喜欢
    • 2018-12-25
    • 2015-08-11
    • 2021-06-17
    • 2017-07-13
    • 2015-11-01
    • 1970-01-01
    • 2016-09-09
    • 2016-03-18
    • 1970-01-01
    相关资源
    最近更新 更多