2012-08-28 68 views
3

我想了解我在windows-32位或64位上運行的Git版本。任何想法如何找出來?我正在粘貼我擁有的任何信息。如何查找我是否使用32位或64位版本的Git

$ git version 

Git版本1.7.10.msysgit.1

[email protected] ~ 
$ git config -l 
core.symlinks=false 
core.autocrlf=true 
color.diff=auto 
color.status=auto 
color.branch=auto 
color.interactive=true 
pack.packsizelimit=2g 
help.format=html 
http.sslcainfo=/bin/curl-ca-bundle.crt 
sendemail.smtpserver=/bin/msmtp.exe 
diff.astextplain.textconv=astextplain 
rebase.autosquash=true 
gui.recentrepo=C:/OCRImages_GIT 
[email protected] 
user.name=Vivek Kaul 
merge.tool=kdiff3 
core.autocrlf=true 
core.editor="C:/Program Files (x86)/GitExtensions/GitExtensions.exe" fileeditor 
mergetool.kdiff3.path=C:/Program Files (x86)/KDiff3/kdiff3.exe 
diff.guitool=kdiff3 
difftool.kdiff3.path=C:/Program Files (x86)/KDiff3/kdiff3.exe 
http.postbuffer=2000000000 
push.default=matching 
pack.windowmemory=512m 
pack.packsizelimit=2g 

回答

5

命令

file $(which git) 

輸出

/usr/bin/git: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=0x4faadbc9c19a44ab71d1714a4e3d69e177e42a76, stripped 
+0

$(這混帳) /bin/git 我在git bash中找不到它。 vkaul @ NBVK〜 $ file $(which git) sh.exe「:file:command not found – vkaul11

+1

git version 1.7.10.msysgit.1顯示它是windows的一種...所以不是文件或默認的那個 –

0

使用file,例如

$ file `which git` 
/usr/local/bin/git: Mach-O 64-bit executable x86_64 
+0

文件命令似乎不能在我的git bash中工作 – vkaul11

+0

您是否複製並粘貼上述命令?請注意,這些是反引號,而不是單引號如果您使用Windows而不是正確的操作系統,那麼希望您有cygwin或類似的給你一個類似nix的環境? –

+0

我現在使用Cywin,但它無法在其路徑中找到GIT。我認爲GIT bash已經在窗口調用了一個* nix環境。 – vkaul11

3

我很欣賞這個老了,但我很沮喪試圖找到答案,然後算出來自己,如果你使用默認的安裝位置,這是非常非常簡單。

如果安裝在C:\ Program Files文件\的Git,它是64位的,如果它在C:\ Program Files文件(x86)的\ Git的這是32位

+2

除非您將安裝位置更改爲'c:\ to ols' – Snekse

相關問題