What needs to be added to .gitignore to hide all Microsoft Word files with the extension .doc?1 point possible~doc./doc*.doc!*.docdoc!*$%unanswered
Question
What needs to be added to .gitignore
to hide all Microsoft Word files with the extension .doc
?
1 point possible
~doc
./doc*
!*.doc
doc!*$%
unanswered
Solution
To hide all Microsoft Word files with the extension .doc in a git repository, you need to add the following line to your .gitignore file:
*.doc
This line tells git to ignore all files that have the .doc extension. Here are the steps:
-
Open your .gitignore file in a text editor. If you don't have a .gitignore file, you can create one in the root directory of your repository.
-
Add
*.doc
to a new line in the file. -
Save and close the file.
-
Commit the changes to your .gitignore file in your repository.
Now, all .doc files will be ignored by git.
Similar Questions
How to get rid of all unknown git files?1 point possiblegit remove-allgit cleargit cleangit purgeunanswered
Which is not a Microsoft Office extension?Group of answer choices.xlsx.txt.pptx.docx
Designations at the end of file names such as .docx and .html are called _____________.answerFile domainsFile extensionsFile permissionsFile properties
A file with a .ppt or .pptx extension was created in Microsoft Office ________.
What are the file types generally accepted by the Plagiarism tools? Microsoft Word PowerPoint WordPerfect All of the above
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.