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
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.
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.
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.
The repository should have been cloned into a directory named "foo" located in whichever directory you ran the git clone
command from.
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