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

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


1 badge earned


Participate in fun challenges

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


Gift kudos to your peers

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


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!


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
Community Members
Community Events
Community Groups

How would I discard multiple, but not ALL hunks in a single file?

For example I have file with 67 'hunks' and I only want to keep 3 of them to stage and commit. Do I need to click 'Discard Hunk' 64 times to do this or is there an easier way?

1 answer

This might be too late but i just had the same issue with iOS storyboards, if you click the icon above "discard hunk" (circle with three dots and a down arrow) and choose external diff then when your diff opens select all ctrl-a/cmd-a and using the selection drop down on the bottom right choose ALL from your remote repo, then go back through and choose YOURS on the 3 you want to keep, save and close and the diff is updated. Hopefully this helps someone

I found an even easier way to do it. Click any line you want to commit (you can click and drag to select multiple lines) then right click and choose "Stage selected lines"

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events