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

5 ★ | 1 Vote