Search code examples
githubgitignore

How to avoid uploading all log files using .gitignore


I am trying to avoid pushing appLog to git, Here's my appLogs. enter image description here and I am using bellow list on .gitignore file,

appLog.log
appLog.log.*.gz

still github desktop is showing me the files in the list. enter image description here

Can anyone pls help me to fix this. Thanks in advance.


Solution

  • A pattern like *.log* in your .gitignore should work here.