I am new to Ubuntu and Git. How I can verify that I have installed git on my machine? When I tried apt-get I got:
root@ubuntu:/home/nebojsa# apt-get install git Reading package lists... Done Building dependency tree Reading state information... Done git is already the newest version. The following packages were automatically installed and are no longer required: linux-headers-3.13.0-24 linux-headers-3.13.0-24-generic linux-headers-3.13.0-39 linux-headers-3.13.0-39-generic linux-headers-3.13.0-40 linux-headers-3.13.0-40-generic linux-headers-3.13.0-43 linux-headers-3.13.0-43-generic linux-image-3.13.0-24-generic linux-image-3.13.0-39-generic linux-image-3.13.0-40-generic linux-image-3.13.0-43-generic linux-image-extra-3.13.0-24-generic linux-image-extra-3.13.0-39-generic linux-image-extra-3.13.0-40-generic linux-image-extra-3.13.0-43-generic Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 133 not upgraded.
but I don't know where are the packages installed.
Thanks for your help!
2 Answers. Git executable can be found by using running git --exec-path, which usually lives in the Git execution path. git --exec-path will give you the path.
Git is by default installed under /usr/bin/git directory on recent Linux systems.
Open the windows command prompt (or Git Bash if you selected not to use the standard Git Windows Command Prompt during the Git installation). Type git version to verify Git was installed.
The default path on windows is C:\Program Files (x86)\Git .
Type which git
. It should return the path to the executable
If you want to see more details: https://serverfault.com/questions/96964/list-of-files-installed-from-apt-package
Just call the git --version
. It should return something like this:
$ git --version git version 1.9.3 (Apple Git-50)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With