How to commit all changed files at time in git

How to commit all changed files at time in git? Instead of adding each changed file and then commit. Do we have any way to commit all changed files

.




 

1. Check the status of the branch
git status
2. commit all changed files
git add -u
see the status again:added files will be in green color
git status
Git commit and git push
git commit -m "Changes in service class" && git push
(OR)
2. add files which are needed if changes are needed to add in specific folder for example src/man/java files
git add "src/main/java/*"
package specific
git add "src/main/java/com/abc/service/*"
see the status again:added files will be in green color
git status
Git commit and git push
git commit -m "Changes in service class" && git push

 
Post a Reply
Captcha Image