Why Sourcetree show these files as changes for commit?
I did not change any thing on these fules.
I want create gitignore file for this
Let's begin by checking if those files are already being tracked in your git repository. If they are, and you'd like to stop tracking them, remember that gitignore alone won't do the trick since it only prevents untracked files from being added. You'll need to remove them from git first.
The other common cause I see is line ending differences. If you're on Windows and your files show as changed but nothing actually looks different, it's likely CRLF vs LF line endings. You can check this in Sourcetree > Preferences > Git and look for core.autocrlf settings.
Cheers, Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.