How To Use GitHub and Set Global Variables

Posted By : Abhilasha Saxena | 18-Mar-2021

Git

Loading...

What Is Git Repository?

Git repository is a collection of all the files related to the project.

Github

It is the largest host for Git repositories so if you are using git then at some point you need to interact with GitHub also.

How to use GitHub?

To use gitHub you have to sign up which is free.

Account Setup-

1.Open Google chrome and type 'https://github.com'.

2.Click Signup and provide username, email, and password.

3.Click on create account.

GitHub provides almost all of its functionality with free accounts, except some advanced features. GitHub also provide paid plans which provide advanced

features. To clone a public project you don't even need to sign up. We need an account when we fork public projects or we push to the fork later.

Fork-

You can download the existing project of someone else to which you don't have push access. This process is called Forking. When you 'fork' a project, GitHub will make a copy of the project that is entirely yours and you can push to it. Anyone can contribute the changes to the original repository. This way projects don't have to worry about adding users as collaborators, to give them push access.

Git First-time setup-

Now that you have Git on your system. There are few things which need to be customized.

git config- using this tool you can get and set configuration variables.

To view all of your settings and where they are coming from use-

git config --list --show-origin

Set Username and Email Address

This is important because every Git commit uses your email and username to track the commit.

To set username-

git config --global user.name "your_username"

To set email address-

git config --global user.email your_emal_address

--global- if you pass the --global option, git will always use that information for anything you do on that system.If you want to set different name and

email address for specific project, you can run the command without --global option when you are in that project.

Many GUI tools will do it for you when you first run them.

At Oodles ERP, we provide custom web application development services to overcome complex business challenges with advanced problem-solving capabilities. Our development team is skilled at using the latest tools, frameworks, and SDKs for custom web application development. For more information, reach us out at [email protected].