Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use git kraken for a force push

I'm using git kraken client gui and I need to perform a force push on a repository. It would be really grateful if someone can guide me the steps to perform a force push on git kraken.

like image 414
Shelly Avatar asked Apr 22 '17 21:04

Shelly


People also ask

How do I force a git push?

To force a push to only one branch, use a + in front of the refspec to push (e.g git push origin +master to force a push to the master branch).

How do you use force push?

The most straightforward tip for the Force Push ability is how to use it. Simply pushing the right trigger at the selected enemy pushes that one enemy back. However, if you hold it in, the power builds up and unleashes a push on every one of the enemies in front of the player.

Can you force push in a pull request?

While you can send pull requests from any branch or commit, with a topic branch you can push follow-up commits if you need to update your proposed changes. Be very careful when force pushing commits to a pull request. Force pushing changes the repository history and can corrupt your pull request.


1 Answers

As @Viktor Seč commented: When you hit push and GitKraken detects that a fast forward update is not possible, it lets you decide wether you want to pull (i.e. merge) changes from upstream or perform a force push:

GitKraken Pull or Force Push

If this is not shown, then a force push is not necessary and a normal, fast-forward update can be performed.

like image 60
kowsky Avatar answered Oct 07 '22 14:10

kowsky