How to make git push origin --force; in Visual Studio Team Explorer

I recently had a problem when I had to ignore my last commit, so on the command line I did the following:

git push origin --force

This works fine, however I usually do my push / pull from Visual Studio Team Explorer, but couldn't find out how to use forcing from here

Is this possible or can only be done from the command line?

+4
source share
1 answer

You can enable --force without using the command line in visual studio 2017, as shown below. Open the explorer command.

Team Explorer> Settings> Git> Global Settings

enable push -force, Check box

PS. visual studio 2017

+5

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


All Articles