When collaborating with AI tools for code assistance, it's beneficial to provide them with an overview of your project's directory structure, excluding files specified in .gitignore
. This ensures that the AI has relevant context without being cluttered by unnecessary or ignored files. This gist sets up the ability to use git lsf
to list all relevant files and git lsfwd
to list files specific to the current working directory in a way that respects .gitignore
exclusions.
You can create a Git alias named lsf
to list all tracked and untracked files, excluding those ignored by Git. To set up this alias, execute the following command: