-
Notifications
You must be signed in to change notification settings - Fork 14
Checkout out code from a remote repository
abhikp edited this page Aug 25, 2011
·
17 revisions
To checkout code from a remote repository you'll have to have the URI for the repository handy. Git supports several protocols, so it may start with git@, https://, git://, etc. For this example we'll be using git@github.com:abhikp/git-test.git
-
In the directory where you want the source folder to be contained run
git clone git@github.com:abhikp/git-test.git.% git clone git@github.com:abhikp/git-test.git Cloning into git-test... remote: Counting objects: 18, done. remote: Compressing objects: 100% (12/12), done. remote: Total 18 (delta 2), reused 17 (delta 1) Receiving objects: 100% (18/18), done. Resolving deltas: 100% (2/2), done. % ls git-test % ls git-test INSTALL README main.javaIf you want to specify the directory name:
git clone git@github.com:abhikp/git-test.git gtest% git clone git@github.com:abhikp/git-test.git gtest Cloning into git-test... remote: Counting objects: 18, done. remote: Compressing objects: 100% (12/12), done. remote: Total 18 (delta 2), reused 17 (delta 1) Receiving objects: 100% (18/18), done. Resolving deltas: 100% (2/2), done. % ls gtest INSTALL README main.java