Search code examples
gitgitignore

How do I gitignore a word document?


For example, I have a word document titled results.docx inside of the directory research. How would I gitignore this word document from the research directory?


Solution

  • To remove all files of .docx use below

    *.docx
    

    if you want to ignore a specific file under a specific folder/directory then use:

    folder_name/results.docx
    

    inside .gitignore file.