A Breif Introduction About Git and GitHub

  

 

Is Git, GitHub are same?

Git and GitHub are different while both are used for Source file management.

Git is a tool/software focused on version control system and code sharing.

GitHub is focused on centralized source code hosting, GitHub is a hosting service for Git repositories

 

What is Git?

Git is a distributed version control system software and it is open source version control system, it is generally used for source code management in software development.

 You can use git for any kind of digital projects.it is used for maintaining the previous and current versions of the source code and web pages .it tracks and records the changes made by the developers .it provides continuous collaboration between the developers on a same project.

 

Features of Git:

It tracks the modifications made to the Source file

It is a free and  open source software

It Supports nonlinear Development.

Creates backup to  the source file versions.

It supports Large scale projects and making branches is easier in the git

 

Git work flow:

When you create a new project and initialize a Git repository using git init, it creates a hidden folder called .git which has a bunch of other files and folders inside. These files and folders contain all the content needed for Git to reference that particular directory.

After initializing the repository, Git starts tracking all the files and folders inside that directory except those you explicitly tell it to not track in the. gitignore file. The. gitignore file is a hidden that lets you list all the files and folders you don't want Git to track. These files and folders would never be referenced by Git in your project.

When you're working with git, your files are saved in one of Git's 3 states:

The Modified State – This is when you add, remove, or change something in a file. Git has noticed the change but you have not formerly informed Git of the change yet.

The Staged State – This is when you inform Git of the change and tell Git to take note of that change. Commonly known as the "Staging Area", files in this stage are called the Staged Files. You can modify a file even after staging it, which lets you see the file both in a modified state and a staged state. The modifications made after the staging will not appear after a commit has been made.

The Committed State – This is when Git has saved your modified changes.

You can use the command git status to see which states your files are currently in.

When you commit some code, Git takes a snapshot of that particular version of your code which you can reference at a later stage.


 GitHub:

"when others are on ****Hub 

programmers are on GitHub"


GitHub is a popular website for code Hosting ,it is more helpful for developers to learn and create new things.developers can upload their codes on the GitHub or download others code and modify the code according to their use or modify the code to their new ideas.

because of  Github ideas of developers won't disappear, they change form  and merge with other ideas.

                                                        

What is GitHub?

It is a website/social media to host your repositories, through git hub you can discover other users and repositories.it is one of the most popular resources for developers to share code and work on projects together.

It is online platform to store, track, and collaborating software programs it enables developers to upload their own code and collaborate with fellow developers

 

GitHub’s Features:

1.Easy Project Management: GitHub is a place where project managers and developers come together to coordinate, track, and update their work so that projects are transparent and stay on schedule.

2. Effective Team Management: GitHub helps all the team members stay on the same page and organized. Moderation tools like Issue and Pull Request Locking help the team to focus on the code.

3. Improved Code Writing: pull requests help the organizations to review, develop, and propose new code. Team members can discuss any implementations and proposals through these before changing the source code.

4.Increased Code Safety: GitHub uses dedicated tools to identify and analyse vulnerabilities to the code that other tools tend to miss. Development teams everywhere work together to secure the software supply chain, from start to finish.

5. Easy Code Hosting: All the code and documentation are in one place. There are millions of repositories on GitHub, and each repository has its own tools to help you host and release code.


GitHub Workflow:    

Sign up for GitHub. In order to use GitHub, you’ll need a GitHub account.

Install Git. GitHub runs on Git

Create a Repository

Create a Branch

Create and Commit Changes to a Branch

Open a Pull Request.

Merge Your Pull Request.      

 

 

 

 

 

 


Comments

Popular posts from this blog

Oracle Database Server Architecture: Overview

Oracle E-Business Suite (EBS) - Introduction

Why enterprises must not ignore Azure DevOps Server