Articles → GIT → .Gitignore File In Git
.Gitignore File In Git
What Is .Gitignore File?
How To Create .Gitignore File?
Prerequisite Of .Gitignore
- Clear the cache using the following command.
- Commit .gitignore file
Git add .
Git commit *.* –m “Committing .gitignore file”
How To Ignore File?
- Open .gitignore file in notepad.
- Add the following code
# ignore log file
log.txt
Click to Enlarge
How To Ignore Folders?
# ignore log file
log.txt
#ignore directory
MyFolder/*