Reputation: 4214
I want to find out what version of Git I am running on windows- 32 bit or 64 bit. Any idea how to find that out? I am pasting whatever information I have.
$ git version
git version 1.7.10.msysgit.1
vkaul@NBVK ~
$ 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
Upvotes: 13
Views: 11843
Reputation: 1133
This should give you the information you're looking for on any platform:
C:\>git --version --build-options
git version 2.21.0.windows.1
cpu: x86_64
built from commit: 2481c4cbe949856f270a3ee80c802f5dd89381aa
sizeof-long: 4
sizeof-size_t: 8
Upvotes: 10
Reputation: 3936
This is how I did it using Notepad++
PE
and hit find nextPE
If it's d
then your Git is 64 bit
If it's L
then your Git is 32 bit
Upvotes: 1
Reputation: 17960
On Git Bash for Windows, you can type
where git
C:\Program Files\Git\mingw64\bin\git.exe
C:\Program Files\Git\cmd\git.exe
If it's installed in Program Files
then you're running 64-bit.
If it's installed in Program Files (x86)
then you're running 32-bit.
Upvotes: 0
Reputation: 81
I appreciate this is old, but I got frustrated trying to find the answer and then worked it out myself. It's very very simple if you use the default install location.
If your install is in C:\Program Files\Git
, it's 64-bit. If it's in C:\Program Files (x86)\Git
it's 32-bit.
Upvotes: 7
Reputation: 213120
Use file
, e.g.
$ file `which git`
/usr/local/bin/git: Mach-O 64-bit executable x86_64
Upvotes: 2
Reputation: 36733
Command
file $( which git )
Output
/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
Upvotes: 6