Home > Software engineering >  How to avoid uploading all log files using .gitignore
How to avoid uploading all log files using .gitignore

Time:01-17

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.

CodePudding user response:

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

  •  Tags:  
  • Related