How GitHub solved Developer Problems?

How the Industry Switched from Centralised Code Servers to Distributed Systems for Code Storage and Management

Today, we will explore some of the benefits of Git and GitHub and how these tools have solved major issues in the development process. In this blog, we will also look at the most useful commands for interacting with Git and GitHub.

Version Control or Version Control Systems

Git introduced the version control feature to help developers keep track of new features in their code. Developers began to trust this tool because it ensures their work won't be lost if something goes wrong. They can always roll back to a previous version of their code.

Storing, Sharing, and Collaborating on Code

GitHub offers developers and organizations a way to store their code, allowing them to share it with colleagues or the community for collaboration. This feature makes it easier to interact and create new features in software applications.

Let’s see some Git Commands

git init    #git init is used to initialise the git tool in your current codebase
git add     #git add is used to add current content found in the working tree
git commit -m "<message>"     #git commit is used to commit your changes with your personalised message specifying about the commit
git status  #git status is used to check the working directory if any new files are pending for adding or commiting
git diff    #git diff is used to check which changes are made in files in the working directory
git push     #git push command is used to push the working tree codebase to the GitHub
git origin   #git origin is used to link your GitHub repository with the existing codebase in local machine
git checkout -b <branch_name>     #git checkout is used to create or switch to the branch 
git log <branch_name>     #git log shows the commit logs on the specified branch name
git cherry-pick <commit_id>    #git cherry-pick is used to choose specific commit to merge into another branch like main branch
git merge <branch_name>     #git merge is used to merge the combined changes on the specified branchname to the main branch
git rebase <branch_name>    #git rebase is used to merge the changes by performing moving, combining and altering changes in the commit flow

That covers everything about Git and GitHub. Thank you very much for reading this article.