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?
给我你的怀抱2017-05-02 09:41:25
First add all.log to .gitignore
Then remove all.log in git
git rm --cached all.log
Submit the changes to github, all.log will not be submitted next time