liveBook · Manning

.gitignore

.gitignore is a Git configuration file containing patterns that specify files and directories Git should exclude from version-control tracking.

How 2 Manning books explain it

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.

Read how Road to Kubernetes explains .gitignore →

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

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.