Getting started with GIT – Part 2
Welcome to the part 2 of tutorial getting started with git. In the part one we had a one text file in our project. So, let’s create some new files. Now enter the status command. You can see it says that you have untracked files. Here, untracked means we did not commit them, and git does not keep track on changes done to those files. So, in order git to keep track of our files we need to commit them. Earlier in the part 1, we add all the files using “ git add . ” command. Now we are going to add files one by one. Now let’s enter the status command. We still did not commit the "second.txt" file. So, you can see it is there in the changes to be committed area. That is the staging area. Staging area is a place between your working copy and the core repository. Whenever we execute the add command on a file, that file goes to the staging area. The staging area includes the files that are ready to get committed. Whenever y...