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

前端 未结 1 494
鱼传尺愫
鱼传尺愫 2021-01-01 11:23

I recently had an issue where I had to disregard my last commit, so on the command line I did following:

git push orig         


        
1条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-01 11:29

    You can enable --force without using command prompt in visual studio 2017 as follows Open team explorer.

    Team Explorer>Settings>Git>Global Settings

    check the enable push --force checkbox and that should do the trick like so

    For more info check out this link

    PS. **This feature is only available in visual studio 2017+ **

    0 讨论(0)
提交回复
热议问题