how to get a file name using git, well I want add file name automatically, for example bellow:
git ls-files -m # show me just files affected with changes
example/example.py
and I want to loop all my project, and get a name files and put that name in a string like bellow:
example.sh
# first check status
git status
# show files affected
git ls-files -m
echo "your changes in files $(git ls-files -m)"
# add files
git add .
# add var name files
NAME_FILES = git ls-files -m # NOT WORKING
# add commit
git commit -m "files added $(NAME_FILES)" # but this line not working
when I show logs just display "files added " and not display names files added.
please help me
thanks