Git & Github

What is Git: Git is a version control system. It was developed by Linus Torvalds(developer of Linux kernel) and Junio C Hamano. It was released in 2005. Git was developed by C, C++, Perl, Tcl, and Python.

Some other popular version control systems are:

  • Bitbucket
  • Gitlab
  • PerForce
  • Beanstalk etc.

Why Git?

  1. To control version
  2. To keep changed track
  3. To collaborate on a project from a different location

Create a personal access token for remote access.

  1. In the upper-right corner, click your profile photo then click Settings.
  2. In the left sidebar, click  Developer settings.
  3. In the left sidebar, under  Personal access tokens, click Token (Classic).
  4. Under the Token name, enter a name for the token.
  5. Under Expiration, select an expiration for the token.
  6. Select scopes. Scopes define access for personal tokens.
  7. Click Generate token.

Remote access in Git using the personal access token

git remote remove origin
git remote add origin https://[TOKEN]@github.com/[REPO-OWNER]/[REPO-NAME]
git push --set-upstream origin master