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
You should read it
- Create activity in Git
- How to Use Deploy Keys on Github
- Operating Rename in Git
- Delete operation in Git
- Online Repository in Git
- Push operation in HTML
- Create funny virtual Home keys on Android
- How to Clone a Repository on Github
- How to create a Public Account on Viber
- Apple violates the rules set by itself and is suffering from user bricks
- The Art of Brevity: How to Write Effective Push Notifications to Match Limits and Increase Engagement
- How to turn Caps Lock keys into modifier keys on Mac