Articles → GIT → .Gitignore File In Git

.Gitignore File In Git






What Is .Gitignore File?





How To Create .Gitignore File?




Touch .gitignore



Prerequisite Of .Gitignore




git add .
git commit –m “Committing .gitignore file”



How To Ignore File?




  1. Open .gitignore file in notepad.
  2. Add the following code
# ignore log file
log.txt






Picture showing the file ignored by .gitignore file



How To Ignore Folders?




# ignore log file
log.txt

#ignore directory
MyFolder/*





Posted By  -  Karan Gupta
 
Posted On  -  Thursday, July 25, 2019

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250