What is Git ?
Git is one of best tool for Version control and Developers first choice tool. Git is a distributed version control system used to manage and track changes in code, documents, and other files. Git is a distributed version control system designed to track changes in source code during software development. It allows multiple people to work on the same codebase simultaneously, keeps a history of changes, and allows developers to collaborate on code without overwriting each other’s work. Git is widely used in the software industry and is also used for version control in other fields, such as writing and data analysis.
Difference between Git and Git Hub ?
Git and GitHub are related but different tools.
Git is a distributed version control system that allows developers to track changes in source code during software development. It allows multiple people to work on the same codebase simultaneously, keeps a history of changes, and allows developers to collaborate on code without overwriting each other’s work.
GitHub, on the other hand, is a web-based hosting service for Git repositories. It provides a graphical user interface and a variety of tools to help developers manage and collaborate on Git repositories. GitHub allows developers to store, share, and contribute to open source projects, as well as host and collaborate on private projects.
In short, Git is a version control system, while GitHub is a hosting service for Git repositories. Git is used to track changes in code, while GitHub is used to manage and collaborate on Git repositories.
How to Install Git for windows.
You can follow the below link for git installation for windows.
Step -01 : Go to link – Git – Downloading Package (git-scm.com)
Step -02 : You can also install from Window powershells
winget install –id Git.Git -e –source winget
Step -03 : Once git install in your system. please verify it from here.
C:\Users\sachi>git --version git version 2.39.1.windows.1 C:\Users\sachi>
Some of the most popular Git commands are:
git init
: initializes a new Git repository in the current directorygit add
: stages changes to be committedgit commit
: creates a new commit with the staged changesgit clone
: copies a remote repository to your local machinegit pull
: fetches changes from a remote repository and merges them into your local branchgit push
: sends local commits to a remote repositorygit status
: shows the current status of the repository, including staged and unstaged changesgit branch
: shows a list of all branches in the repository, and can be used to create or delete branchesgit merge
: combines changes from two branchesgit log
: shows a history of commits in the repository.
If this article is looks good and interested, Please read more and I hope you also like below.
How to find the file system size in Linux using df command.
[…] Git installation: for git installation please watch this below following link : What is Git – How to Install and Configure Git […]
[…] You can read this great technical blog as well. – What is Git – How to Install and Configure Git […]