How to Clone Central Repository (GitHub) in Git

Share via:

How to Clone Central Repository (GitHub) in Git

 

In this article,we will see How to Clone Central Git Repository in Git.

Implementation Steps

  1. Logging to GitHub Account.
  2. Copy Central Repository URL.
  3. Create Clone Repository by using URL.
  4. Verify files/commits in Clone Repository.
  5. Create a new file “latest” and add content to the file.
  6. Add and commit the file “latest”.
  7. Push commits from Local Repository to Central Repository.
  8. Verify file in Central Repository.

First we need to go GitHub main page by using below link.

https://github.com/login

Logging to GitHub Account

Provide username and password and click on Sign in.

 

Click on existing repository “Ramesh-Ktexperts/AWS”

Copy Central Repository URL

Go to Clone or download, copy the central repository URL.

https://github.com/Ramesh-Ktexperts/AWS.git

Create Clone Repository by using URL

Go to Linux Terminal and paste the central repository URL

we have to enter git clone then paste central repository URL which was copied earlier.

We can see the repository has been cloned successfully.

To see the repository

Verify files/commits in Clone Repository

Go inside the Repository “AWS”

To see list of files regarding to the repository “AWS”

To see the list of commits

Create a new file “latest” and add content to the file

Add and commit the file “latest”

Adding file to Staging Area

Commit the file into Local Repository

To see the list of commits

To see the latest commit

To see the data of latest commit

Push commits from Local Repository to Central Repository

Verify file in Central Repository

Go inside your GitHub and hit refresh of your browser.

we can see file and commit message.

To check data of the file

Click on latest to open.

We can the data “This is my latest code” of file.”latest”

 

Thank you for giving your valuable time to read the above information. Please click here to subscribe for further updates

KTEXPERTS is always active on below social media platforms.

Facebook : https://www.facebook.com/ktexperts/
LinkedIn : https://www.linkedin.com/company/ktexperts/
Twitter : https://twitter.com/ktexpertsadmin
YouTube : https://www.youtube.com/c/ktexperts
Instagram : https://www.instagram.com/knowledgesharingplatform

Share via:
Note: Please test scripts in Non Prod before trying in Production.
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading...

2 thoughts on “How to Clone Central Repository (GitHub) in Git

Leave a Reply to santhi Cancel reply