Understanding Git, GitHub, push, pull and version control
This article will help you understand Git and GitHub, terms like push, pull, tracking changes, and version control
Git Bash is a tool that allows you to interact with Git using simple commands. It is basically a channel through which you can communicate with GitHub.
To install your Git Bash, visit GITBASH. Once installed, you can open Git Bash from your application and you will be directed to a black window where you will begin.
Connecting Git Bash to GitHub
Now, after creating your account on GitHub, you have to configure Gitbash to git hub by inputting commands that will generate a key which you'll later input to GitHub and connect them.
Pushing Code to GitHub
Pushing code means making changes to a project and sending those changes to GitHub.This step uploads your work to the online repository, making it available as a backup or for collaboration.
After pushing, your code is safely stored online. If your computer fails or you switch devices, your work remains accessible on GitHub.
Pulling Code from GitHub
Pulling code is the opposite of pushing. It means downloading the latest version of a project from GitHub to your computer.
Pulling is useful when:
You are working on multiple devices
Someone else has updated the project
Tracking Changes in Git
Tracking changes means checking what files have been modified, added, or deleted since the last save. Git continuously watches your project and notes every difference
This helps you to stay up to date with your projects, especially if you are working on different devices or collaborating on a project.
Version control using Git
Version control is basically a system that records every change made to a project over time. Instead of saving multiple copies of the same file with different names, Git automatically keeps a history of all changes.
This means you can:
Go back to an earlier version of your work
See exactly what changed and when
Work safely without fear of losing progress
Version control is very important when working in a group since it helps not to overwrite each others work.

Top comments (0)