Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Source tree not able to push

So I make my file changes, but when I try to push them source tree complains that some one else pushed before me.The files are different,yet I am forced to merge the changes. Some times I have to backup and reset my workspace before it can allow me to push again Is there no way to force the push?

like image 383
coder310 Avatar asked Sep 05 '25 03:09

coder310


1 Answers

  1. Open SourceTree Preferences
  2. Tab: Advanced
  3. Third checkbox: Allow force push
  4. Enable the checkbox and close Preferences.

Next time you push, there will be an extra checkbox: Force push.

Checking it will also display an additional Confirm Force Push dialog box before the force push is actually performed.

like image 161
Arbo Avatar answered Sep 08 '25 00:09

Arbo