How to clone a repository?

It is possible to "clone" repositories. Git creates an exact replica of an existing repository when you clone it. Assume you have a repository called "organiser". To clone the repository into a directory named "organiser_clone", run the following command, replacing username with your own account username:

git clone /home/username/organiser /home/username/organiser_clone

The "organiser_clone" directory is now an exact copy of the "organiser" repository.

When someone wants to make modifications in the "organiser_clone" directory that he wants to pull back into the original "organiser" directory. Then to accomplish this, use the following commands, replacing username with your own account username:

The git pull command is used to retrieve and download content from a remote repository and then immediately update the local repository with that content.

cd /home/username/organiser
git pull /home/username/organiser_clone master
Was this answer helpful?

Related Articles

How to make changes in repository?

Git makes it simple to update a repository. Using the git add command, you can update Git's file...

How to create a repository in GIT?

To build a Git repository, simply log in to your Hostginger hosting account through SSH and enter...

What is GIT?

All Hostginger Hosting Wordpress and Cloud accounts include the popular Git version control...

How to merge changes from one branch to another branch?

Type the following command to merge modifications from one branch into another. Replace name with...

How to configure a GIT Client to work with a GIT Repository?

After you build a repository on your Hostginger Hosting account, you'll certainly want to be able...