Force Overwrite Existing Affiliate Missing from TortoiseGit

I use TortoiseGit to fix a fix, and then check the box "Replace force restart of an existing branch (May disard changes)" in the Push window. But now this flag is missing in the Push window. How can I force push in TortoiseGit now?

+5
source share
1 answer

If you are using TGit 1.8.10 +

In Push Dialog there are 2 push push buttons. The left is the new (-force-with-lease), which is a "safer" way to force push. If your local server refs / remotes / origin / master == server master, then you can force this option. If someone changed the server master, your local refs / remotes / origin / master! = Server master, then you cannot force this option.

Correct is the traditional (-force) that always throws things away.

Your git version is lower than 1.8.5 Thus --force-with-lease is not available. You have only the --force option on the right.

You might consider upgrading your git version.

Link: https://tortoisegit.org/issue/2285

+15
source

Source: https://habr.com/ru/post/1202202/


All Articles