Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,458,990
Community Members
 
Community Events
176
Community Groups

"stage selected lines" and then "commit only those lines" now commits entire containing file

Edited

I recently noticed that the "stage selected lines" and then "commit only those lines" stopped working. It is now committing the entire file.

 

If I have a file with 20+ lines changed lines in it, say lines 1-20

and I want to make one commit with lines 3-8

and then another commit with lines 1-2, 9-20

 

My usual work flow was to select those lines and then click Commit.

As of two attempts recently this commits the whole file not just those lines.

I'm on macOS 10.12.6 and Sourcetree 2.7.6

I've now switched to use Sourcetree to stage the specific lines and commit within my command line as that does seem to be working.

My previous workflow appeared to work as expected 48 hours ago.

3 answers

I'm experiencing this problem now, with version 3.1.2

I stage lines from a file, write a commit message and hit "commit", and the whole file gets committed. This is very frustrating!
Being able to commit selected files so easy is one of my favorite features on SourceTree.

 

Any advice appreciated.

Correction. Updated to newest +4 version och still same.
Might be something locally, but what could stage the rest of the file outside of Sourcetree?

Hi,

Sorry to dig out this subject, but as a long time user of SourceTree, I still lack this function that was very useful in older versions such as the 2.7.x.

As the "Commit selected..." action is still in the UI of version 4.1.7, I assume that it is still a bug to not be able to keep the selected/staged files selected once in the commit screen.

Would be great to correct this in a near future... 

Thanks in advance!

0 votes
bgannin Atlassian Team Mar 08, 2019

Hi @Oli,

We're not aware of any issues in this area with 2.7.6. There aren't any remote interactions that can affect Sourcetree's behavior; the only way we would cause a change for you is if you download a new update of the app.

Are you using embedded or system Git (check the app's preferences)? What version is it?

Brian Ganninger
Principal Developer, Sourcetree

Using Sourcetree 4.0.1 and just updated macOS to 10.15.4 from macOS High Sierra and now staging lines no longer works. The whole file is moved into the staged area but also remains in the unstaged area.

Correction - was during uncommitted merge. macOS update was just coincidence. 

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events