I'm developing on a VM and would like to see, which files and directories I need to add manually to my web directory on the remote server when I will be deploying the project (e.g. files with environment specific settings / credentials). How can I get a list of these files / directories?
git ls-files -o
The -o option of ls-files will show untracked files.
If you would like untracked directories listed as directories and not all the individual files you can do:
git ls-files -o --directory
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With