How to Share GitHub Repository Link with Others

GitHub is a good platform for developers to collaborate and also store their work. One of the features provided is collaboration. This feature allows users to collaborate with other developers. Simply, you can share GitHub repository links with other developers. It is one of the best ways to work on the same project.

If you’re not familiar with this feature, you can follow this article to learn more about how to share GitHub Repository link with other developers. Before going through the steps, there are some important things you need to know about the GitHub collaboration feature.

Table of Content

Things You Should Know About GitHub Sharing Link

If your Git repository is only on your remote GitHub or GitLab account, it is not very useful. You need to pull or clone the code from the remote repo to your local machine so that you can work with the files and resources that are stored there. To do that, you need to find and use the GitHub URL.

Most of the time, all you need is the HTTPS-based GitHub URL to clone something. This one is the one that is shown by default on the page for the repository. But it comes in three different forms: HTTPS, SSL, and the GitHub CLI.

How to Share GitHub Repository Link with Others

In this lesson, you’ll need to find a partner. The “Owner” will be one person, and the “Collaborator” will be the other. The goal is for the Collaborator to make changes to the repository owned by the Owner. In the end, we’ll switch roles, so both of us will be Owners and Collaborators.

See Also  How to Fork and Clone in GitHub

1. The Owner has to give access to the Collaborator. Click the “Members” tab at the top of GitLab and type in the username of your partner.

2. The Collaborator must then get a copy of the Owner’s repository on her computer. We call this “cloning a repo.” The Collaborator enters:

$ git clone ssh:// ~/Desktop/vlad-planets

3. To get access to the Owner’s Repository, replace the vlad with the Owner’s username.

4. The Collaborator can now make modifications to her clone of the Owner’s repository in the same steps as before using the following commands:

$ cd ~/Desktop/vlad-planets
$ nano pluto.txt

$ cat pluto.txt

It is so a planet!

$ git add pluto.txt

$ git commit -m "Add notes about Pluto"

1 file changed, 1 insertion(+)

 create mode 100644 pluto.txt

5. Then, using GitLab, push the update to the Owner’s repository:

$ git push origin master

Counting objects: 4, done.

Delta compression using up to 4 threads.

Compressing objects: 100% (2/2), done.

Writing objects: 100% (3/3), 306 bytes, done.

Total 3 (delta 0), reused 0 (delta 0)

To ssh://

   9272da5..29aba7c  master -> master

6. It’s worth noting that you didn’t need to construct a remote called origin: When we clone a repository, Git uses this name by default. (This is why, when we were manually configuring remotes, origin made sense.)

7. Check on the Owner’s repository on the GitLab website right now (maybe you need to refresh your browser.) You should be able to see the Collaborator’s new commit.

8. The Owner now enters the following command to download the Collaborator’s changes from GitLab:

$ git pull origin master

remote: Counting objects: 4, done.

remote: Compressing objects: 100% (2/2), done.

remote: Total 3 (delta 0), reused 3 (delta 0)

Unpacking objects: 100% (3/3), done.

From ssh://

 * branch            master     -> FETCH_HEAD

Updating 9272da5..29aba7c


 pluto.txt | 1 +

 1 file changed, 1 insertion(+)

 create mode 100644 pluto.txt

9. The three repositories are now in sync (Owner’s local, Collaborator’s local, and Owner’s on GitLab).

See Also  How to Download a GitHub File in 2 Different Methods!

These are the easy steps on how to share the GitHub Repository link with other collaborators.


In practice, you should git pull before making changes to ensure that you have the most recent version of the repository with which you are cooperating. The fundamental collaborative workflow would be as follows:

  • update your local repo with
    git pull origin master
  • make your changes and stage them with
    git add
  • commit your changes with
    git commit -m
  • upload the changes to GitLab with
    git push origin master

It is preferable to make several little changes rather than one large change in one commit.

Share This Post

Newest Articles

How to Get a GitHub Access Token for Personal Access

No longer have access to your personal GitHub repository? You can use the GitHub Access Token to open it. Read the full guide here!

How to Make a GitHub Repository Private

Developers can now create a private GitHub repository in the free tier as of January 7, 2019. Read how to get the private repository feature on GitHub here!

3 Methods of How to Install Android SDK Repository

Android is one of the most used operating systems for software development. Read the full guide on how to get the Android SDK here!

How to Turn Off Android Developer Mode

Android Developer Options allows you to access hidden features. If you want to deactivate it, follow this simple guide to turn it off!

5 Simple Ways How to Get Cookie Clicker GitHub

How to get and use Cookie Clicker on GitHub? You can find the simple steps and cheats for Cookie Clicker in this article!

How to Integrate Jira with GitHub in 6 Easy Steps

If you use Jira for your work and need to integrate with another organization that uses GitHub, integration is what you require. Read the details here!