
The working tree stores all file in the repository The working tree This is the most important part of Git, and it is what is copied when you clone a repository from another computer.Ĭreate a git directory by the command: C:\> Git init Git init The Git directory is where Git stores the metadata and object database for your project. Working tree, staging area, and Git directory Working tree, staging area, and Git directory Staged means that you have marked the current modified version of the file to be ready for the next commit. Modified means you changed the file compared to the previous commit but these files was not saved in the local database, if there is a problem occurs, your code will be lost. Once your files has been committed, it was safely stored in your local database, so these files were not lost. Git defines three states for your file: committed, modified and staged.

Three states of files: committed, modified and staged To go further more, you create a repository on the stored server (Github, Bitbucket) as below: Repository And if it was changed since it was checked out but has not been staged, it is modified. If it has been modified and was added to the staging area, it is staged. If a particular version of a file is in the Git directory, it’s considered committed. You do a commit, which takes the files as they are in the staging area and stores that snapshot permanently to your Git directory.You stage the files, adding snapshots of them to your staging area.The basic Git workflow goes something like this: I prefer to use Git with command lines and in this article, I will introduce two ways of using Git, one is demo in Katalon studio and another is demo in command lines. Git now is integrated almost with IDE tools such as Eclipse, Android Studio, and also Katalon Studio.

Git is a version control tool for tracking changes of files in working processes, which is commonly used in software development and among people in a project.
