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 rm -r --cached .




Git add .
Git commit *.* –m “Committing .gitignore file”



How to ignore file?








# ignore log file
log.txt







Click to Enlarge


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