You can use this in a script to commit changes only if specific files changed.
Hit the subscribe button to receive more videos like this!
REFERENCE LINKS
---------------------------------------------------
► https://nickjanetakis.com/blog/check-...
COURSES
---------------------------------------------------
Courses I've created that focus on web dev and deployment topics.
► https://nickjanetakis.com/courses
THE TOOLS I USE / GEAR
---------------------------------------------------
► https://nickjanetakis.com/blog/the-to...
FOLLOW ME ELSEWHERE
---------------------------------------------------
► Twitter: / nickjanetakis
► GitHub: https://github.com/nickjj
TIMESTAMPS
---------------------------------------------------
0:00 -- Intro
0:49 -- Running the demo script
2:15 -- Breaking down the git ls-files command
5:20 -- Making the command fail friendly
6:00 -- Getting confused by the deleted flag
7:05 -- Going back to the error flag