Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Why Sourcetree show these files as changes for commit? need Create gitignore file

Janaka Neranjan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 8, 2023

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

Capture.PNGCapture3.PNGCapture2.PNGCapture.PNG

1 answer

0 votes
Martin Runge
Community Champion
July 28, 2026

Hi @Janaka Neranjan

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events