What is Git?
First, we need to know what a git is? So, let's start Git is a version control system, a tool to manage your source code history. It is a free and open-source a distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
![]() |
| git and github |
What is Github?
Secondly, we need to know what a GitHub is? What does it do? So, we can start now, GitHub is a web-based Git repository hosting service, which offers all of the distributed revision control and source code management (SCM) functionality of Git as well as adding its own features.
SCM-Source Code Management
GitHub and similar services bring a centralized service with all of the benefits of a decentralized VCS. As with every other creator, GitHub also stores a copy of your project's repository. Then you simply designate this as the central repository for the project and all the developers are pushing and pulling their changes to and from that repository. GitHub takes this one more step by allowing developers to fork a repository for a project and then use it as their own centralized repository. From there they can submit "pull requests" with their improvements to the main project and there they can be checked by project maintainers before determining whether to include them in their project or not.
VCS- Version Control System
Why Developers and Programmers use Git?
Once you write code, you make increments to modify or add to the existing code. Without external support, it's very difficult to keep track of changes as your software expands, and you don't have a simple, automatic way to undo the necessary changes if you want to reverse a collection of changes. If you have multiple people editing the same code, it can be quite difficult to merge in the changes introduced by different programmers.
We use Version Control Software to handle this issue. They keep track of modifications and code additions, including who changed what and when. Subversion (svn), a common example, is. Subversion is centralized: there is a central repository that allows users to checkout code and commit changes to it.
SVN-Subversion
How does Git work?
Basic overview of how does Git work:
- Firstly you have to create a "repository". Generally, a project called as a Github "repository".In this case, you can use any git tool like Gitbash or Bitbucket.
- Copy or clone the newly created repository to your local machine.
- Add files and folders in your repository and "commit " means save to the changes to the remote Github sever.
- "Push" your changes to your master branch.
- Always make a change to your files and folders with a git hosting tool and commit.
- "Pull" the changes to your local machine.
- Create other branches for team works.
Stay tuned to learn more about Git and Github.Happy Learning!!!

Post a Comment
Leave a comment first....