
- Git Tutorial
- Git - Home
- Git - Basic Concepts
- Git - Environment Setup
- Git - Life Cycle
- Git - Create Operation
- Git - Clone Operation
- Git - Perform Changes
- Git - Review Changes
- Git - Commit Changes
- Git - Push Operation
- Git - Update Operation
- Git - Stash Operation
- Git - Move Operation
- Git - Rename Operation
- Git - Delete Operation
- Git - Fix Mistakes
- Git - Tag Operation
- Git - Patch Operation
- Git - Managing Branches
- Git - Handling Conflicts
- Git - Different Platforms
- Git - Online Repositories
- Git Useful Resources
- Git - Quick Guide
- Git - Useful Resources
- Git - Discussion
- Git - Persian Version
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Git - Clone Operation
We have a bare repository on the Git server and Tom also pushed his first version. Now, Jerry can view his changes. The Clone operation creates an instance of the remote repository.
Jerry creates a new directory in his home directory and performs the clone operation.
[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 changes the directory to new local repository and lists its directory contents.
[jerry@CentOS jerry_repo]$ cd project/ [jerry@CentOS jerry_repo]$ ls README
Advertisements