top of page
hand-businesswoman-touching-hand-artificial-intelligence-meaning-technology-connection-go-

STEP BY STEP GUIDE FOR GITHUB BEGINNER – PART 1

INTRODUCTION:

 

At a high level, GitHub is a website and cloud-based service that helps “Scrum team” or “Agile team” (developers and testers) store and manage their code, as well as track and control changes to their code. To understand exactly what GitHub is, you need to know two connected principles:

 

·      Version control

·      Git

 

  •   Version control :

 

It helps Scrum team to track and manage changes to a software project’s code. As a software project grows, version control becomes essential.  Version control lets Scrum team safely work through branching and merging. With branching, a Scrum team duplicates part of the source code (called the repository). The Scrum team can then safely make changes to that part of the code without affecting the rest of the project.

 

Then, once the Scrum team gets his or her part of the code working properly, he or she can merge that code back into the main source code to make it official.

All of these changes are then tracked and can be reverted if need be.

 

  • Git:

It is a distributed version control system, which means that the entire codebase and history is available on every Scrum team’s computer, which allows for easy branching and merging.

 

 

In this Blog, we will learn how to create a new repository in GitHub and how we can push our project to GitHub from our local machine through Eclipse

  

As you have an Account on Github, let’s start..

 

Step 1:  Create a new repository. Select public/private as per your need.

           

 

Once we have created new  repository , you will get the link of the repository, save it for later.

 

Step 2 : Important settings need to be check in Git hub.

 

1.     Go to general setting(on the top right in your profile)

2.     Go to developer settings  Personal access tokens  Tokens(Classic)

3.     Click on “Generate a personal access token”

4.     Do mention a note message. Expiration is 30 days. (Every 30 days generate a new token)

 

Step 3 : Make sure these scopes are checked and updated.(Important)

 

1.     repo

2.     user

3.     admin:gpg_key

4.     admin:ssh_signing_key 

 

If not checkbox these scopes and generate the token.

 

You will get an alphanumeric code as token. Copy and save it for later.

 

Now let’s learn how to push the code(Project) from eclipse to GitHub

 

Step 4: Right click on the project(Which we need to push to GitHub),

 

·      Select Team --> share project.

·      Then we will get “Configure Git Repository” screen (pushing the codes to local Git).

 

 

·      Click on create and  rename, you will get this screen and click on finish.

 

 

 

 

 

·      After this, right click on the project and select commit.

           

 

·      This is the Git staging (Staging the files from Unstaged changes) to GitHub.

·      Click on ++ to add all the files from Unstaged to Staged changes.


 


·      The files will be moved from Unstaged to Staged changed. Add a commit message.


·      Click on commit. A window pop’sup and enter the URI (What we created in GitHub – new repository).


·      Authentication:  User and password(The token what we generated in GitHub).

 


 

·      Then click on Preview and finally push the codes to GitHub. This screen appears.

 

 

 

 

 

Finally we pushed our code in GitHub. Lets continue how to create our branch from master in GitHub and how can we switch to our branch in Eclipse in PART 2 of our Blog.

 

Thanks for Reading, HAPPY LEARNING!!!

 

 




119 views0 comments
bottom of page