Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 3
Message 1 of 7

Add collaborator

Solved! Go to Solution.

Hi All,

 

I am new in GitHub and just started palying around to gain knowledge on this tool.

 

I have done followings :

 

1. Created one private github account 

2. Created one public repository

 

Now i would like add collaborator to this new repo.

 

For this i have done followings:

1. Select 'Settings' options of the repository for which i would like to invite collabirator

2. Click on 'Collaborator' option

3. in 'Add Collaborator' text box, find and added on of my freind's git hub account

4. Click on 'Add Collaborator' button

5. Now it is showing awating for response from the user whome i have sent the invitation.

 

now, problem is neither my friend is geeting any mail from my end regarding this invitation nor he is geeting any notification in his github account, hence unable to add collaborator to my repo.

 

Don't know what to do in this case.

Looking for your guidance.

 

Thanks with Regards,

JD 

 

 

6 Replies
Commander Lvl 3
Message 2 of 7

Re: Add collaborator

Hi @Jayantadeb73 ,

 

Did your friend, who you invited, try to:

  1. Log in with their account
  2. Manually navigate to your private repo

 

If the invite got sent out well, a screen to accept the invite should appear.

 

Also check the junk folder in the mailbox! Post back if it didn't work.


- Mark
Copilot Lvl 3
Message 3 of 7

Re: Add collaborator

Hi Mark,

 

Thanks for your reply.

As mentioned two steps in below mail, i can follow the first one, but unable to follow 2nd one (as you know i am very new in GitHub).

 

It will be nice if you can let me know the how to 'manually navitate' to my private repo from my friend's account.

 

Sorry to bother you.

 

Thanks with Regards,

JD

 

Commander Lvl 3
Message 4 of 7

Re: Add collaborator

No problem @Jayantadeb73 , I should have explained it better!

 

Normally, the URL of a repository would be github.com/<username>/<repo name>. If I were to navigate to a private repository by typing it manually in the address bar, I’d get a 404. However, if I am invited to that private repository I should get a screen where I can accept the invite.

 

So, if your repo is called test, first invite your friend as a collaborator, then let him sign into that account and let him navigate to github.com/Jayantadeb73/test (make sure to replace the repo name!).

 

Let us know how it goes!


- Mark
Copilot Lvl 3
Message 5 of 7

Re: Add collaborator

Hi Mark,

 

Thank you very much for such a excellent explanation regarding 'navigate to private repo'; but unfortunately didn't work as expected.

 

Now, what i did, i have created another reposiroty, this time as private - (earlier one was public for which i have already sent invitation, which didn't work, even after followed your instruction) -  and sent invitation for this private repository.

 

Now one again followed your instruction and this time worked  as per expectation... my friend can see the invitation which he has accepted.

 

Now here i have couple of queries:

 

1. why the invitation didn't work for public repo, but work for private. 

2. even for 'private repo' it wokrs after followed your insrutction, but why he has not received any notification in his github account. but received the invitation mail.

3. and finally I am not able to provide the access rights (admin, read, write), not getting option even fot this.. 

 

Looking for you kind reply.

 

Thanks with Regards,

JD

Solution
Commander Lvl 3
Message 6 of 7

Re: Add collaborator

As a helpful reference, here is the official article on it: https://help.github.com/en/articles/inviting-collaborators-to-a-personal-repository

 

To (try to) answer your questions:

  1. Not sure about this, but I don't think adding people as collaborators on public repos will have much of an effect in like mails and such.
  2. I don't think you every receive notifications inside of your account if you get invited to any repo.
  3. If you've added your friend as a collaborator, he should have push rights. Just ask him to try out to push a branch.

 

Initially in this thread, I thought you were talking about private repos as well. In my experience, it works a bit along these lines:

 

  • Inviting someone to a public repo just "silently" (not sure about that) gives that person the rights to push
  • Inviting someone to a private repo sends out mails and such

 

Some things for you to check:

 

  • Is your friend able to push to your public repo after you've added them as a collaborator (in which case the sytem works)
  • If you are trying to add collaborators to a private repo, remember that using Free accounts you can only have up to three collaborators per private repository
  • If this fails as well, I'd suggest contacting GitHub support at https://github.com/contact, since I can't look into your account

- Mark
Copilot Lvl 3
Message 7 of 7

Re: Add collaborator

Hi Mark,

 

Thank you very much for your great support. This was my first conversation in GitHub account and you made it special. Once again thanks for all your answers.

 

Definitely i will look into all those matters, mentioned by you and let you know if any hurdles come.

 

Thanks with Rergards 

JD