| ms.date | 10/18/2022 |
|---|---|
| ms.topic | include |
| ms.service | azure-devops-repos |
| ms.subservice | azure-devops-repos-git |
-
In the Git Changes window, select the push button to push your commit.
:::image type="content" source="../media/rebase/visual-studio-2019/git-experience/push-commit-git-changes-window.png" border="true" alt-text="Screenshot of the up-arrow push button in the Git Changes window of Visual Studio." lightbox="../media/rebase/visual-studio-2019/git-experience/push-commit-git-changes-window-lrg.png":::
Or, you can select Push from the Git menu.
:::image type="content" source="../media/rebase/visual-studio-2019/git-experience/push-commit-git-menu.png" border="true" alt-text="Screenshot of the Push option from the Git menu in Visual Studio." lightbox="../media/rebase/visual-studio-2019/git-experience/push-commit-git-menu-lrg.png":::
-
If the default Git push operation fails, Visual Studio launches the Git-Push failed dialog. Choose Force Push.
:::image type="content" source="../media/rebase/visual-studio-2019/common/push-failed-dialog.png" border="true" alt-text="Screenshot of the Git-push failed dialog in Visual Studio." lightbox="../media/rebase/visual-studio-2019/common/push-failed-dialog-lrg.png":::
-
Visual Studio will display a confirmation message after a successful push.
:::image type="content" source="../media/rebase/visual-studio-2019/git-experience/push-confirmation.png" border="true" alt-text="Screenshot of the push confirmation message in Visual Studio." lightbox="../media/rebase/visual-studio-2019/git-experience/push-confirmation-lrg.png":::