.gitignore
.gitignore is a Git configuration file containing patterns that specify files and directories Git should exclude from version-control tracking.
Road to Kubernetes
.gitignore is a Git configuration file that specifies files and directories Git should ignore.
- How it is used
- Keeps generated, local, and recoverable dependency files out of Git tracking during Python and Node.js application development.
- How deep it goes
- Defines placement, shows practical ignore patterns, and verifies results with git status without exploring advanced pattern rules.
- Examples
- Uses Python venv/ and cache patterns, Node.js node_modules/ and log patterns, plus git status checks.
- What you can do after
- Configure Git to ignore project-specific files and diagnose misplaced or unsaved .gitignore files through git status.
Build Python Web Apps with Streamlit
A .gitignore file specifies files and directories that Git should exclude from version-control operations such as commits.
- How it is used
- Protects secrets and deployment configuration from accidental Git commits during application sharing and deployment.
- How deep it goes
- Explains file placement, ignore entries, and removing already tracked files, but does not detail pattern syntax.
- Examples
- Uses .streamlit/secrets.toml, .ebextensions/, .elasticbeanstalk/, and git rm -r --cached .streamlit/ as concrete examples.
- What you can do after
- Configure Git to omit sensitive local files and remove previously tracked secrets from its index.
Read how Build Python Web Apps with Streamlit explains .gitignore →
Related concepts
- gitconfigures · Git is a distributed version-control system that records changes to files and supports managing project history and collaboration across repositories.
- Cargoproduced by · Cargo is Rust’s package manager and build system for managing projects, dependencies, compilation, testing, and related workflows.
- lock fileconfigures · A lock file records resolved dependency versions and related metadata so a package manager can reproduce a project's dependency installation.
- .env fileconfigures · A .env file is a plain-text configuration file containing environment-variable assignments that applications or tools can load at runtime.
- repositoryconfigures · A software repository is an organized storage location or collection of project files and related artifacts, often managed with version history and change tracking.
- CODEOWNERS fileused by · A CODEOWNERS file is a repository configuration file that maps file paths to people or teams responsible for reviewing changes to those paths.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

