Those who don’t understand the GIT or GitHub

Hariprasath Thanarajah
Nov 5 · 4 min read

You can go to this link to have an idea about the Git and GitHub.

Is it really need to have a Git Account to work on a GIT repository. If yes then how can we create a one?

Go to https://github.com/join and create a New Account where you need to provide a unique username as well as a unique email to create a GIT Account.

Don’t create a new GIT account to access a corporate Organization or the corporate repositories(If anyone ask you to do so means that they don’t have any idea about the GitHub and the private repositories).

Why do they ask to create a new GitHub account? Is it really necessary?

Maybe the person who asked to create the GitHub account has no idea about the real need of GIT and it’s functionalities.

100% not necessary if you already have your personal one, because when you asked access to the Organization(Eg: XYZ Company) or it’s repo(Salesforce-Sample) in Git they will add your username instead of email to their Private git org to give the authorization even if they used the Identity provider to give the SSO to their repositories.

Worst scenarios

  1. If anyone asked you to create a new account with the corporate email because of the way they followed to get access to the repositories: They don’t have the idea about the GitHub.
  2. If anyone asked you to create a new Account to get access to the private repositories: They really don’t have the idea about the private repository and about the connection between the Git organization and it’s repositories and the GitHub account. The question I had here to them is, do we really need to create a new account to get access from a different Organization(Eg: ABC Company) If so these are duplicate user Accounts for that same user in GitHub which is not the intention of GitHub.

I am going to explain why we don’t really need to create a new account when we moved to a new Company with the help of the following Diagram

Git Explanation

I have an Account in GitHub with the username hariss63(I can only see my email so no need to worry about this). I have my own repositories and Organizations.

Scenario

If I, the user hariss63 worked at SO, XYZ corporation and working at ABC Corporation, do I really need to create 3 different accounts for each Corporation in GitHub with their corporate email id to access the private org repositories?

Are you guys joking? It’s not a place to duplicate the user details to access the private repositories and fill the GitHub Database with the duplicate records.

point 1:

When you see the SO Corporation it’s a public organization so the repositories are also being public and can anyone directly view clone and fork their source code and work on without any permission from the org/ repository owner. But if you need to merge your changes to the master repository you should have the write permission to those repositories. If the owner verified your development they can add your username to their org/ repositories/ team and can remove from the org lately as well.

point 2:

When you see the XYZ Corporation it’s a private organization because their codebase needs to be hidden from the public users. In this case, the XYZ Corporation has the Private Git organization and private repositories also inside GitHub where they can add their current employees to collaborate in those projects. If you are a new employee to that corporation you should need to give the existing personal Git username to get access to those Git repositories instead of creating a new Git Account since the new Git Account is 100% not necessary at all.

If they really ask you to create a new git account with the hariss63@xyz.com just smile and ask,

  1. What is the reason?
  2. What is the connection between GitHub and the XYZ Corporation — Git Organization? Is the organization a different website from GitHub to access it or is it inside GitHub?

Now you are leaving from the XYZ Corporation then the admin or the owner of the Organization can simply remove the access of the user from the Organization and repositories. It pretty easy right? then why we need to create a new Git Account to access those private repositories.

Same as ABC Corporation it’s also a private organization, so the owner can give access to their private repositories until you employed with them and can remove your access from the Git after you left the Corporation.

It’s pretty simple to keep only one GitHub Account to work on any private or public organizations and its repositories of the Corporations instead of duplicating the GitHub database.

Finally!!!!

It can not be accepted as right if you did this in a wrong way

Hariprasath Thanarajah

Written by

4 + of experience in Software Development and became a certified Salesforce Developer to develop end-to-end feature for Salesforce non-profit package Converse.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade