无法在Mac上安装Git

问题描述:

当我从他们的官方网站下载Git到我的Mac ....我已经尝试了近一个多小时,并观看了无数的教程,包括official website,但仍然有麻烦安装它,实际上在我的Mac中找到它。在我遵循他们的指示之后,终端对代码的反应也与指示不同。在我的Mac中没有找到作为文件的位置,尽管它显示在终端上。虽然它显示在终端上,但我无法遵循常规安装过程。你能否发现问题?无法在Mac上安装Git

打开我的终端....设置的用户名和电子邮件到终端..... 当我检查“混帐配置--list”,它给人的代码是

core.excludesfile=~/.gitignore 
core.legacyheaders=false 
core.quotepath=false 
core.pager=less 
mergetool.keepbackup=true 
push.default=simple 
color.ui=auto 
color.interactive=auto 
repack.usedeltabaseoffset=true 
alias.s=status 
alias.a=!git add . && git status 
alias.au=!git add -u . && git status 
alias.aa=!git add . && git add -u . && git status 
alias.c=commit 
alias.cm=commit -m 
alias.ca=commit --amend 
alias.ac=!git add . && git commit 
alias.acm=!git add . && git commit -m 
alias.l=log --graph --all --pretty=format:'%C(yellow)%h%C(cyan)%d%Creset %s %C(white)- %an, %ar%Creset' 
alias.ll=log --stat --abbrev-commit 
alias.lg=log --color --graph --pretty=format:'%C(bold white)%h%Creset -%C(bold green)%d%Creset %s %C(bold green)(%cr)%Creset %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative 
alias.llg=log --color --graph --pretty=format:'%C(bold white)%H %d%Creset%n%s%n%+b%C(bold blue)%an <%ae>%Creset %C(bold green)%cr (%ci)' --abbrev-commit 
alias.d=diff 
alias.master=checkout master 
alias.spull=svn rebase 
alias.spush=svn dcommit 
alias.alias=!git config --list | grep 'alias\.' | sed 's/alias\.\([^=]*\)=\(.*\)/\1\  => \2/' | sort 
include.path=~/.gitcinclude 
include.path=.githubconfig 
include.path=.gitcredential 
diff.exif.textconv=exif 
credential.helper=osxkeychain 
user.name= 
user.email= 
+0

等待,你可以做'git config --list'?然后它已经安装好了,试一试'git --version' – BladeMight

+0

_“我的Mac中没有找到作为文件的位置,尽管它显示在终端上。”_--你到底想要看到什么作为一个文件? – 1615903

+0

@BladeMight的版本是2.10.1,但我无法在我的Mac上找到它作为软件或文件 –

混帐作为MacOS的一部分,所以你不需要'安装'git,只需打开终端并键入'git',就会出现一个提示窗口,要求你为终端安装git工具。

+0

我也尝试过,但仍然无法将其视为我的Mac中的软件或文件,或者按官方网站的指示安装 –