Cloning Repositories
Goals
- Learn how to make copies of repositories.
Go to the work directory
Go to the working directory and make a clone of your hello repository.
Execute:
cd ..
pwd
ls
NOTE: Now in the work directory.
Output:
$ cd ..
$ pwd
/Users/jim/Downloads/git_tutorial/work
$ ls
hello
At this point you should be in your “work” directory. There should be a single repository here named “hello”.
Create a clone of the hello repository
Let’s make a clone of the repository.
Execute:
git clone hello cloned_hello
ls
Output:
$ git clone hello cloned_hello
Cloning into 'cloned_hello'...
done.
$ ls
cloned_hello
hello
There should now be two repositories in your work directory: the original “hello” repository and the newly cloned “cloned_hello” repository.
当前内容版权归 gitimmersion 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 gitimmersion .