Clone activity in Git
We have an empty repository on the server and Tom also pushed his first version. Now, Jerry can observe his changes. Clone operation creates a remote repository instance.
We have an empty repository on the server and Tom also pushed his first version. Now, Jerry can observe his changes. Clone operation creates a remote repository instance.
Jerry creates a new folder in his home directory and performs the simulation.
[jerry @ CentOS ~] $ mkdir jerry_repo
[jerry @ CentOS ~] $ cd jerry_repo /
[jerry @ CentOS jerry_repo] $ git clone gituser@git.server.com: project.git
The above command will produce the following result:
Initialized empty Git repository in /home/jerry/jerry_repo/project/.git/
remote: Counting objects: 3, done.
Receiving objects: 100% (3/3), 241 bytes, done.
remote: Total 3 (delta 0), reused 0 (delta 0)
Jerry changed this directory to the new local directory and listed its directory contents.
[jerry @ CentOS jerry_repo] $ cd project /
[jerry @ CentOS jerry_repo] $ ls
README
According to Tutorialspoint
Previous lesson: Create activity in Git
Next article: Make changes in Git
You've just finished reading the article "Clone activity in Git" edited by the TipsMake team. You can save clone-activity-in-git.pdf to your computer here to read later or print it out. We hope this article has provided you with many useful tech tips and tricks. You can search for similar articles on tips and guides. Thank you for reading and for following us regularly.