In terminal, `which git` or `whereis git` will give your the git's executable file location.
For example in my machine :
$which git
/usr/bin/git
$
Hi Allen, thanks for the answer. One more question.
For example In an directory have initialized gitint and some files are getting track after few days again I came back and forgot the directory name
Then I how I'll find this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Go to home directory and type the find . -name ".git" comment, it will list all the git repo in your computer. Check those list and find your repo.
$find . -name ".git"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to give some space between "." "-name".
there are four part in this command and each part will be separated with space.
part1 = find (actual command)
part2 = . (dot means current directory)
part3= -name (command's args)
part4= ".git" (file or directory name).
So the outcome is
$find . -name ".git"
$find(space).(space)-name(space)".git" #replace "(space)" with " "
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you so much, this has greatly helped me as well
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.