Cloning action mirrors all the files with the folder structure to/from web-based tool GitHub. Cloning is the first step of replication. Once cloning is done, Project can be developed, issues can be reported and fixed.
Steps to Clone a Repository:
- From the last post Create a Repository on GitHub, we had a repository created as below:
In Section ‘h’, we have a link which enables us to clone WebIDE projects. We copy the link using the ‘copy’ button in front of the link.
2. Now login to WebIDE. We have a repository called ‘myTestRepository’ in GitHub which we shall replicate in WebIDE.
3. Right click on project ‘Workspace’ > Git > Clone Repository
4. A popup comes and asks for URL of Git repository. Enter the URL from Step 1 and click ‘Clone’.
5. This asks for User authentication for GitHub. Enter your GitHub credentials:
6. On successful authentication, Git asks for Commit & Push confirmation. Git basically ignores system files. Do a Commit and Push. With this, WebIDE pushes all repository artifacts to GitHub.
7. On above confirmation, Clone completes and a popup is shown for same.
8. Check WebIDE for myTestRepository as below:
The files and folders are preceded by a green dot which shows that GitHub and WebIDE are in sync.
This completes Cloning of repository from GitHub.
2 thoughts on “Clone a Project/Repository from GitHub”