File tracking records which files and changes belong to successive Git states. Saving a file is different from tracking it: git add prepares a saved state, while git commit finalizes it. section 2.3.3
Use the process to control which related changes enter a version-control state:
- Run git add <path> to prepare selected files or folders at their current saved state. section 2.3.3
- Use git reset <path> to unprepare a selected path before committing. section 2.3.3
- Run git commit -m "message" to finalize changes since the previous commit. section 2.3.3
- Track unrelated features separately so the resulting incremental changes remain understandable. section 2.3.3
