What is Git ? Learn Git commands with Cheat sheet
If you're just starting out with Git and not sure how it works then this article is for you. Let's learn Git with our free guide - a step-by-step guide showing how to use Git & GitHub for free!
Getting Started with Git
Git is a distributed version control system for developers. This means that you can clone codes from others repository on GitHub, push your code on GitHub or you also can fork , marge your codes with others.
Git was originally developed by Linus Torvalds, who wanted to create a better version control system than what was out there, and pushed it to the Linux kernel as soon as it was ready. This made it open source (and free), which allowed it to be used by anyone.
Getting started with Git might seem like a daunting task at first because there are so many different ways that you can do things with Git. But don't worry; we'll show you exactly what needs to be done and how long each step takes so that you can get started right away with step by step!
Benefit of using Git & GitHub
Git provides many advantages over other systems:
- It's fast! Git gives you access to all your changes in one place and automatically handles conflicts between them.
- It's easy! Git lets you work from anywhere, any time, with full access to your entire history and all your collaborators' history.
- It's free! There is no cost for hosting code on GitHub, Atlassian or Bitbucket; there are no hidden fees or extra costs for sharing code with others.
How To Use Git
Git is used by thousands of software projects, including GitHub, Google Code, and Microsoft CodePlex. It's also been adopted by companies such as Canonical, Atlassian, and SourceForge. So, how to use Git to work with your project? For that , create a github acount and Download and install Git to your desktop.
Git create new repository
The first step is to create a workspace. Create a repository on GitHub. For that, see the screenshot below.
Remember the username and your repository name, because we will use it later.