Edit Code and Commit Git
In this article , will perform the below task
(1) Modify Function calwildCard from ES5 to ES6
(2) Check the Current Git status
(3) Add the Modify Script in the Git Staging Area
(4) Commit the edited File
(5) Check Git Log
Step 1
Modify the Function from ES5 to ES6
![ES5](https://www.creatifwerks.com/wp-content/uploads/2021/08/ES5_function.png)
![ES6](https://www.creatifwerks.com/wp-content/uploads/2021/08/ES6_Function.png)
Step 2
Check Git status
![git status](https://www.creatifwerks.com/wp-content/uploads/2021/08/git-status.png)
Step 3
Add the Modified Code to the staging Area
![git add](https://www.creatifwerks.com/wp-content/uploads/2021/08/git-add.png)
Step 5
Commit Changes
![git_commit](https://www.creatifwerks.com/wp-content/uploads/2021/08/git_commit.png)
Step 6
Check the Log
![git log](https://www.creatifwerks.com/wp-content/uploads/2021/08/git-log.png)
Check out how to add local file to Git Hub