Cloning a repository from GitHub
Other topicsClone a repository
- Go to the repository you want to clone (something like: https://github.com/username/repo)
- On the right, click on the green button named clone or download
- A small window will appear, copy the url (something like: https://github.com/username/repo.git)
-
Open a terminal window on the machine you want to clone that project to
-
Navigate from the command line to the location you want to clone the project to
-
Enter the command: git clone <copied_url_from_step_3>
-
Press Enter
-
Something like the following will appear:
Cloning into <repo_name>
...
remote: Counting objects: 10, done.
remote: Compressing objects: 100% (8/8), done.
remove: Total 10 (delta 1), reused 10 (delta 1)
Unpacking objects: 100% (10/10), done.
Syntax:
- git clone github.com/username/repository
Contributors
Topic Id: 3761
Example Ids: 23708
This site is not affiliated with any of the contributors.