I have a project locally that is synchronized with github in both directions, but when I debug it locally, there is a log file all.log
This file will also change, and then when I submit it to git, it will be pulled from the cloud When I came down, it said there was a conflict...? Because the log files in the cloud will also change.
Then it prompts that synchronization failed, saying that conflicts need to be handled manually. Is there any way to directly ignore all files with log ending format when submitting?
Add *.log to the .gitignore file
First add all.log to .gitignore
Then remove all.log in git
Submit the changes to github, all.log will not be submitted next time