Forums

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

Cant commit file, wont stage & reverts files after commit

Schroef
Contributor
February 19, 2025

 

ST 3.4.22

win11

 

Im seeing weird behaviour from the latest update of SourceTree. I had issues with this repo before and remove it locally and forked it again. I was using an older build from last year. Still had issue not being able to commit because files simply wont stage.

 

I updated to new version 3.4.22 and i still see it hapening. Screen flickers when i press "stage all" or the small plus icon. Prior i could see something in the event viewer, but in this video, you see its empty.

 

Not sure what is happening, ive been battling this issue for hours now and also yesterday.

 

About to give up delete complete fork and start forking it again. What a waste of time


Screenshot 2025-02-19 110518 - Copy.png

 

 

What is also weird is this poiint. I see the same file twice. Its staged but also not staged?!?!

Screenshot 2025-02-19 115706 - Copy.png

 

 

Whats also

4 answers

0 votes
Jan Gracia
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!
March 7, 2025

You are right, Thank you so much for the info.

0 votes
Davide Bacchi March 4, 2025

You probably see the files twice because of how your git is configured.
Also remember that if other devs aren't working on windows case-sensitivity in filenames may be an issue (specially changing filenames from windows)

If you have conflicting configurations between git and the .gitattributes and .editorconfig of your project you may see such behavior (at least is what I experienced), I ended up using .gitattributes file only for files that actually need to have always the same line ending, I leave all the others as default.



Schroef
Contributor
March 5, 2025

I'm not familiar of how that should look or how that works.

 

I eventually got it sokved by commiting, then push to the branch.

 

Then I could revert my mistakes by going back in history. Inbelieve I did sync to commit. I'm probably using wrong term here i dont know all terms from memory

0 votes
Schroef
Contributor
February 19, 2025 edited

Keeps getting weird, after a restart i could stage and commit and push
Now i see the same file twice, notice the different upper-lowercasing in the file name. That file isnt even there ?!?!

Screenshot 2025-02-19 122952.png Screenshot 2025-02-19 122957.png Trying to fix the issue without using camel-casing my co-developper used. Doesnt fix the issue. This is perhaps a Windows Explorer issue, it doesnt like to rename files and change character-casing. But aside of that, Sourcetree also is doing something strange here

0 votes
Schroef
Contributor
February 19, 2025 edited

PS first event viewer was empty, which i also found strange. 
Now after a while i do see this. Im not very familiar with git, been using for some while but dont know all the ins and outs. I know how to get around, but never seen this weird behavior

Screenshot 2025-02-19 120748.png

Another thing which caught my eye. Im in a branch, yet the GUI doesnt show branching? It should show a "arm branching" to the right
doesnt show branching.png  

Davide Bacchi March 4, 2025 edited

For the branching: I use / instead of - and name folding works fine

just rename your branch to editd/lightroom/editor/specials and folding will work

Schroef
Contributor
March 5, 2025

I kinda doubt that is an issue. I've been using this method for couple years and where ever I look, I see small dash. I've actually never seen a slash. Because if there is a slash in a webbrowser that means a different path. Each slash would mean it's a folder

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events