I have a repeated functioned across 90 files, sometimes they are in the exact same line number and spacing aswell.
I made a change the the function that applies to all 90 files. But now i have to go through each file 1 by 1 and stage the change. This wouldnt be a problem if there were no other changes in the files as i could just stage all. but since there were uncommited changes i dont want to commit randomly.
Is there a way to commit/stage the same change across multiple files?
There isn't a way to stage similar changes across multiple files in Sourcetree via the UI. You might be able to whip up a CLI script if the task is too tedious or you find yourself doing it more than every great once in a while.
Principal Developer, Sourcetree
Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events