1

i would like to work with my friend on one project. So, for this i'm using git repo. But, i dont know how to add him to my repository on git. How to do this?

gopigoppu
  • 219
  • 2
  • 15
  • 1
    This depends on how you're hosting your repository. Is it on github or are you managing it yourself somehow? – Noufal Ibrahim Aug 21 '14 at 06:16
  • If it is on github (as I presume it is from the tags you've used), you can add your friend as a "collaborator" in the settings tab on the github page for your repo. – Noufal Ibrahim Aug 21 '14 at 06:17
  • Ask him to fork your repo, make updates in his fork, and submit pull requests, or add him as a collaborator to your repo. A simple google search returns the relevant help page: https://help.github.com/articles/adding-collaborators-to-a-personal-repository – JB Nizet Aug 21 '14 at 06:18

1 Answers1

2

Note that in general, git itself has no notion of authentication or authorization: if your friend has any access to your repo, like a simple network folder share, he can clone/push/pull to your repo directly.

Only the Git repo hosting server can add some level of control (like GitHub and GitLab where you can ask to fork your repo, or you can add directly a collaborator to your repo)

Varun W.
  • 242
  • 2
  • 14
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250