Cloning a Repository From Github

If this is your first time creating a project in Git, I would suggest you to look at:



If a remote repository already exists in Github, it can be downloaded through below steps:


1. On the Github, navigate to the main page of the repository.


2. Click on the Repository name that you would like to download.


3. You will see an option: Clone in that page.


4. When you click on clone, you will have an option to download it as a zip file or to copy the ssh or https url.


5. To clone the project using the url, copy the ssh or https url and open the terminal in your system.


6. Navigate to the location/directory where you want to download the project.


7. In the terminal, type git clone followed by the url you copied in the Github.


8. Press enter and this would clone the project. This would also ensure connectivity between local repository and remote repository. 


NOTE: If the project is downloaded as zip, unzip the project and move it to the location where you want the project to be and then perform the below commands:


git init - to initialize the directory as git repository


git remote origin <server project url- either ssh or https>

Comments

Popular posts from this blog

Getting started with Spring Boot Application and pushing it to Github

Spring Boot Caching

Performance test with Gatling