Exclude/Ignore File or Directory From Git (.gitignore)

February 3, 2019

Create .gitignore file in your project directory.

Ignore directory.

ignore_directory/

Ignore file.

ignore_file

Ignore files by extension.

*.log

Check out Github’s sample .gitignore by language or framework: https://github.com/github/gitignore

References:

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.