To ignore file changes in your working directory, you should update the _________ file in your Git repository.
- .gitignore
- .gitconfig
- .ignore
- .exclude
The correct option is .gitignore. This file contains a list of file patterns that Git should ignore when tracking changes in your working directory. It's useful for excluding temporary files, build artifacts, and other files that shouldn't be part of your version control.
Loading...
Related Quiz
- To undo changes made to your working directory, use the command git _______.
- The process of systematically checking commits to find a bug using git ________ is known as bisecting.
- In a distributed team, a developer needs to integrate a hotfix into multiple branches efficiently. What Git approach or feature should they use?
- Which command is used to create a new Git repository?
- In complex workflows, pull requests may be used to merge changes from _______ branches to _______ branches before reaching the main branch.