To ignore certain files from being tracked in Git, list them in a _______ file.
- .exclude
- .gitignore
- exclude.txt
- ignorefile
The correct option is "b) .gitignore." The .gitignore file is used to specify files or patterns that Git should ignore. This helps in preventing unnecessary files from being tracked, such as temporary files or compiled binaries.
Loading...
Related Quiz
- For advanced CI/CD workflows, Git's ________ feature can be used to manage code reviews effectively.
- A developer needs to temporarily switch context to another task without committing their current, incomplete work. What Git feature is most appropriate for this scenario?
- In Git, the __________ file can be used to enforce code quality standards across all project contributors.
- The git ________ command provides a byte-wise comparison between two branches to diagnose corruption or discrepancies.
- How do you resolve a merge conflict in Git?