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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do I delete Pushes from Source Tree?

I got myself in some trouble here. I accidentally tried to push a big file and got an error. When I tried to reverse the commit, it just created another push. When i try to push, I blows up again. It's like there is a push log jam. How do I get rid of these unwanted pushes?

push backup.JPG

1 answer

1 vote
minnsey Atlassian Team Jan 24, 2018

The Push Indicator just reflects that your local copy of the repo is # of commits ahead of the remote.

Assuming the just want to get rid of the last 2 commits, then you can right click on 3rd from last commit and choose "Reset current branch to this commit" and then decide if you want to keep any of the changed files or not, if not select the 'Hard' reset and your local repo will return to that state, before you committed the large file.

For what its worth have you looked at Git-LFS for storing large files in Git?

I was finally able to test this and it worked. Thank you. I did look at Git-LFS and that didn't solve my immediate problem. Quite frankly, I don't think data files belong on GitHub at all which is what i was trying to push in the first place. There are better solutions to that.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Sourcetree

[dev team] Sourcetree for Windows 2019 Preview - Dark Theme

Hi folks, While the full post is over on our blog I'd like to share the dark theme we've got planned for 2019 here directly as well to keep the discussion going.  The ...

3,202 views 19 18
Join discussion

Community Events

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

Events near you