In this tutorial, we are going to modify the Employee.txt file. Then add and commit to the full project. Finally will check the status. Here we took a text file as an example. So that we can understand easily. Typically text and code are the same thing for the git repository. We will follow the same steps for our real project (Code).
Current data of Employee.txt file -
Step 1: Modified with added salary in Employee.txt file -
Step 2: Check the status after modification.
git status
Step 3: Finally we will add this modified Employee.txt file to the storage area and commit.
git add --allgit commit --m "My comment - Salary Added"
Next tutorial we will get the earlier version of Employee.txt file from the commit log.
0 Comments