Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 943 Bytes

git-config-enable-push.md

File metadata and controls

16 lines (12 loc) · 943 Bytes
author ms.author ms.date ms.topic msservice ms.subservice
vijayma
vijayma
10/19/2022
include
azure-devops-repos
azure-devops-repos-git

The Enable push --force-with-lease option corresponds to the push --force-with-lease command. This setting is only available at the global scope. By default, Enable push --force-with-lease is disabled.

  1. From the Git menu, choose Git > Settings and then select the Git Global Settings view. That view contains the Enable push --force-with-lease setting.

  2. Choose whether to enable push --force-with-lease, and select OK to save.

    :::image type="content" source="../media/git-config/visual-studio-2019/git-experience/push-force-setting.png" alt-text="Screenshot showing the checkbox to enable push force with lease in the Options dialog box in Visual Studio." lightbox="../media/git-config/visual-studio-2019/git-experience/push-force-setting-lrg.png":::