Modify project and commit. Step by step - 6

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).

Git Logo
Current data of Employee.txt file - 
Current Data Image


Step 1: Modified with added salary in Employee.txt file - 

Modified Data Image

Step 2: Check the status after modification.
git status
Git Status


Step 3: Finally we will add this modified Employee.txt file to the storage area and commit.
git add --all
git commit --m "My comment - Salary Added"
Commit Image

 Done ...😃

Next tutorial we will get the earlier version of Employee.txt file from the commit log.

Post a Comment

0 Comments