You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
for example, I have installed git in the directory. But I'm not able to find in which directory I installed
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.