threads / discuss / 55105

git command was killed

Subject: git command was killed

## tl;dr

3 messages between Feb 4, 2021 and Feb 5, 2021.

replies: 2people: 2as markdown or json

LiuShiyang· Feb 4, 2021, 06:38 UTC · lore
Hello, 
I’d like to get your support to solve below issue. When I upgraded my MacBook Pro (appple silicon ) , all git commands can not be run, and it shows ******killed. I have tried to reset Xcode-select, switch the path, or install again..no luck to resolve it.
Please advise how I can solve this issue. 

shiyangliu@ShiyangdeMacBook-Pro  ~  git --version [1] 40011 killed git —version

Brew config results: 
 shiyangliu@ShiyangdeMacBook-Pro  ~  brew config
HOMEBREW_VERSION: >=2.5.0 (shallow or no git repository)
ORIGIN: (none)
HEAD: (none)
Last commit: never
Core tap ORIGIN: (none)
Core tap HEAD: (none)
Core tap last commit: never
Core tap branch: (none)
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
clang: error: unable to find Xcode installation from active developer path "/Library/Developer/CommandlineTools", use xcode-select to change
Clang: N/A
Git: N/A
Curl: 7.64.1 => /usr/bin/curl
Java: 15.0.2
macOS: 11.2-arm64
CLT: 12.5.0.0.1.1611946261
Xcode: dunno => /Library/Developer/CommandlineTools
Rosetta 2: false
Shiyang
Eric Sunshine· Feb 5, 2021, 06:07 UTC · re: LiuShiyang · lore

Re: git command was killed

On Thu, Feb 4, 2021 at 1:48 AM LiuShiyang <wingsdream1943@icloud.com> wrote:
Show 6 quoted lines
> I’d like to get your support to solve below issue. When I upgraded my MacBook Pro (appple silicon ) , all git commands can not be run, and it shows ******killed. I have tried to reset Xcode-select, switch the path, or install again..no luck to resolve it.
>
>  shiyangliu@ShiyangdeMacBook-Pro  ~  brew config
> CPU: octa-core 64-bit arm_firestorm_icestorm
> macOS: 11.2-arm64
> Rosetta 2: false

This problem may be specific to Homebrew's installation of Git. Apparently, Homebrew wasn't originally able to build for Apple "Silicon" and the various supported "formulas" need to be upgraded manually for "Silicon". This page [1] shows a (perhaps) outdated status of each package.

Somewhere in [1] there is mention that you may be able to install a package as x86_64 rather than as arm64 and then run it via Rosetta, so you might want to try that (assuming Rosetta works for you). Or maybe you already installed x86_64 and Rosetta is failing for you(?), in which case try the arm64 version. Otherwise, probably best would be to ask at the Homebrew project.

[1]: https://github.com/Homebrew/brew/issues/7857
LiuShiyang· Feb 5, 2021, 06:55 UTC · re: Eric Sunshine · lore

Re: git command was killed

Thanks Eric for the response. After I had git dependencies gettext and pcre2 reinstalled, git was reborn on my Macbook. Seems this was a common issue with 11.2 upgraded.
Show 24 quoted lines
> 2021年2月5日 下午2:07,Eric Sunshine <sunshine@sunshineco.com> 写道:
> 
> On Thu, Feb 4, 2021 at 1:48 AM LiuShiyang <wingsdream1943@icloud.com> wrote:
>> I’d like to get your support to solve below issue. When I upgraded my MacBook Pro (appple silicon ) , all git commands can not be run, and it shows ******killed. I have tried to reset Xcode-select, switch the path, or install again..no luck to resolve it.
>> 
>> shiyangliu@ShiyangdeMacBook-Pro  ~  brew config
>> CPU: octa-core 64-bit arm_firestorm_icestorm
>> macOS: 11.2-arm64
>> Rosetta 2: false
> 
> This problem may be specific to Homebrew's installation of Git.
> Apparently, Homebrew wasn't originally able to build for Apple
> "Silicon" and the various supported "formulas" need to be upgraded
> manually for "Silicon". This page [1] shows a (perhaps) outdated
> status of each package.
> 
> Somewhere in [1] there is mention that you may be able to install a
> package as x86_64 rather than as arm64 and then run it via Rosetta, so
> you might want to try that (assuming Rosetta works for you). Or maybe
> you already installed x86_64 and Rosetta is failing for you(?), in
> which case try the arm64 version. Otherwise, probably best would be to
> ask at the Homebrew project.
> 
> [1]: https://github.com/Homebrew/brew/issues/7857

← back to recent threads