Welcome to Keren Automation, In this tutorial, we will learn about Git, Installation & Setup in Windows.
- Git is a version control system like CVS, SVN, Mercurial and Fossil to manage your code along with your team members.
- Git is an opensource application, developed by Linus Torvalds in 2005 to develop Linux Kernel.
Features of Git:
- Opensource: Git is opensource, so you no need to pay anything.
- Scalable: Git handles scales up with the users load in workspace.
- Distributed: Every user has their own repository; all changes are saved in local repo until you commit to remote repository.
- Secure: Git is secure and uses SHA1 (Secure Hash Function ) cryptographic hash function to name and identify objects within its repository.
- Speed: Git is fast, because all operations are going to happen in local, which speeds up the productivity.
- Staging Area: Git provides staging area, where you can preview the changes before commit.
- Offline working: You can continue work offline with GIT, even you’ve issues with your internet connection.
- Undo: Git offers undo operation for the things you carry in code.
- Changes Tracking: Git offers Diff, Log and Status, which are handy to track changes so we can check the status, compare our files or branches.
Git vs Github:
- Git is a version control app to manage the code locally – Github is cloud based tool, which built on Git.
- Git can be installed locally – Github is online service to host code, which can be managed by local Git.
- Git is a command line tool, but can be managed by Git Gui interface – Github is web-based tool.
- Git doesn’t provide user management feature – GitHub provides user management.
Install Git in Windows Platform:
Step1: Navigate to https://git-scm.com/downloads and download latest version as shows in below picture.
Step2: Double click to run the downloaded file and click on “Yes” to proceed with installation
Step3: Click “Next” to install – here you can change the installation directory.
The Git Bash looks like as: