Skip to content

Commit eefa330

Browse files
Merge pull request #10321 from MicrosoftDocs/main638574663272751679sync_temp
For protected branch, push strategy should use PR and merge to target branch method to work around git push error
2 parents 20e44f9 + 0d3410a commit eefa330

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

docs/version-control/git-manage-repository.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ author: ghogen
88
ms.author: ghogen
99
ms.manager: mijacobs
1010
ms.subservice: general-ide
11+
ms.collection: ce-skilling-ai-copilot
1112
---
1213
# Manage Git repositories in Visual Studio
1314

@@ -19,6 +20,12 @@ Version control with Visual Studio is easy with Git. And, you can work remotely
1920

2021
To open the **Git Repository** window, choose **View** > **Git repository** (or press **Ctrl**+**0**, **Ctrl**+**R**), or press **Ctrl**+**Q** and under **Features**, search for **Git repo**.
2122

23+
## Explain a commit with GitHub Copilot Chat
24+
25+
With Visual Studio 2022 version 17.10 preview 2 and later and the GitHub Copilot extensions, you can use AI to generate a detailed commit description that describes the changes in that commit. Press the **Explain** button to request that GitHub Copilot create a commit description. To install GitHub Copilot, see [Install and manage GitHub Copilot in Visual Studio](../ide/visual-studio-github-copilot-install-and-states.md).
26+
27+
:::image type="content" source="media/vs-2022/repository-commit-copilot.png" alt-text="Screenshot of the explain button to request that GitHub Copilot create a commit explanation.":::
28+
2229
## Change the last commit (amend)
2330

2431
Updating the last commit is called *amending* in Git, and it's a common use case. Sometimes you just need to update your commit message, or you might need to include a last-minute change.
Loading

0 commit comments

Comments
 (0)