简体   繁体   English

git挂起macOS Sierra终端没有恢复

[英]git hangs macOS Sierra terminal with no recovery

Running git version 2.10.2 (from Homebrew) on macOS Sierra 10.12.1. 在macOS Sierra 10.12.1上运行git版本2.10.2(来自Homebrew)。 When I perform a git pull it completely hangs my terminal. 当我执行git pull它完全挂起我的终端。 If I force quit terminal and relaunch then terminal will not start. 如果我强制退出终端并重新启动,则终端将无法启动。 I've tried the following (from other answers): 我尝试了以下(从其他答案):

  1. Change over from using DSA keys to RSA keys (due to deprecation of RSA in the latest OpenSSH) 从使用DSA密钥切换到RSA密钥(由于最新OpenSSH中的RSA弃用)
  2. Updated to the latest Homebrew and updated git 更新到最新的Homebrew和更新的git
  3. Tried a different terminal (iTerm) 试过一个不同的终端(iTerm)
  4. Ensured xcode is up-to-date and reinstalled commandline tools (xcode-select --install) 确保xcode是最新的并重新安装命令行工具(xcode-select --install)

The fact that it completely hangs Terminal and can't recover makes it very hard to diagnose and it seems to mess with a number of other apps after this, requiring a complete reboot. 事实上它完全挂起终端并且无法恢复使得它很难诊断,并且在此之后它似乎与许多其他应用程序混乱,需要完全重启。 Any help gratefully received! 任何帮助感激不尽!

this was most frustating thing i faced in recent times, i used to force restart machine 3-4 times in an hour. 这是我最近遇到的最令人沮丧的事情,我过去常常在一小时内强制重启机器3-4次。 but i solved it somehow 但我以某种方式解决了它

brew uninstall --force git

install git 2.10.1 https://git-scm.com/download/mac 安装git 2.10.1 https://git-scm.com/download/mac

restart terminal window/tab .. check the version of git should be 2.10.1 重启终端窗口/标签..检查git的版本应该是2.10.1

it is working without any problem for me. 它对我没有任何问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM