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

前端 未结 1 495
鱼传尺愫
鱼传尺愫 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)
自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题