
You can browse the created commits and even restore the previous versions of the files. When we perform a commit, the created snapshot is added to the project history.git folder which contains all your files and their checksums. Simply speaking, it’s a large file inside the. An index (or “staging area”) is like a snapshot of your working tree that contains all the current changes.The working tree observes all your changes and makes notes of them. You can freely create, modify, and delete files and folders in the working tree as usual. git folder) in their present state as they exist on the file system. Basically, the working tree is a collection of your files and folders (excluding files inside the. First of all, it’s important to understand that the changes that we perform are done in a so-called working tree of the project.To override the primary branch name, provide the -b flag: git init -b primary Some terminologyīefore proceeding, let’s cover some common terms. Depending on your setup, this branch may be named either master or main. This folder is very important as it’s going to store all history for your project therefore do not delete it unless you fully understand what you are doing.īy default, git init creates a single “primary” branch in your project. git folder with all the Git goodies that are required to properly perform version control. So, after you have created a folder for your new shiny project, just cd into this folder and run: git initīasically, this command creates a hidden. Init is a Git command that initializes or reinitializes a Git repository in the current folder. I’m going to use Git 2.32.0 which is the latest version at the time of writing this article.Īpart from that, there are no special requirements: you can use any operating system and any command line tool.
#GIT STATUS SHORT PC#
To follow this article, you’ll need to have Git installed on your PC (obvious, isn’t it?). We are going to see some examples and talk about the usage of these commands, so hold on tight, and let’s get started!


Therefore, in this article we’re going to list and discuss the most common and useful Git commands that you’re most likely going to utilize in your day-to-day work.
#GIT STATUS SHORT HOW TO#
Basically, any programmer nowadays is expected to know the basics of Git and understand how to work with this system. Git is a version control system which became a de-facto standard for many developers.
