Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where did git put a clone

Tags:

I'm pretty new to git. For a class the teacher posted a link to clone a project file it said

git clone git://github.com/foo 

I typed the command and it seemed to work. Problem is I don't know where the file is! If I type the command again it says destination path already exists and is not an empty directory.

Any help really appreciated =S

like image 377
bb2 Avatar asked Aug 28 '11 19:08

bb2


People also ask

Where do my git clones go?

By default, the clone command saves your code in a folder that shares the name of your repository. This can be overwritten by specifying a folder name after the URL of the repository you want to clone. Creating local copies of a Git repository stored elsewhere is a central part of the Git version control system.

Does git clone create a folder?

The standard approach to clone is repository is using the git-clone command. But when you simply clone a repository with git clone <repository> , it creates a new directory with repository name at the current path in the file system and clones the repository inside it.

Where are git repos stored?

Git stores the complete history of your files for a project in a special directory (a.k.a. a folder) called a repository, or repo. This repo is usually in a hidden folder called . git sitting next to your files.


Video Answer


1 Answers

The repository should have been cloned into a directory named "foo" located in whichever directory you ran the git clone command from.

like image 191
jwodder Avatar answered Sep 21 '22 05:09

jwodder