Skip to content

Commit 689e400

Browse files
Add 17.14 feature: Show incoming outgoing commits only (#13912)
* Show incoming outgoing only * Incorporate feedback * Fixing typos per Acrolinx --------- Co-authored-by: Shannon Leavitt <[email protected]>
1 parent eac787a commit 689e400

File tree

5 files changed

+24
-5
lines changed

5 files changed

+24
-5
lines changed

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

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Browse repos, compare branches & commits"
33
description: Browse any Git repository in Visual Studio by using the Git Repository window to view local and remote branches and multiple branches at the same time.
4-
ms.date: 08/13/2024
4+
ms.date: 5/6/2025
55
ms.topic: how-to
66
author: ghogen
77
ms.author: ghogen
@@ -31,7 +31,7 @@ The **Git Repository** window contains three main sections, as numbered in the p
3131

3232
- **Incoming** shows incoming commits that your team has been contributing.
3333
- **Outgoing** shows your local commits that you still haven't pushed.
34-
- **Local History** shows the rest of commits tracked by your local repository.
34+
- **Local History** shows the rest of commits tracked by your local repository.
3535

3636
1. **Commit**: To open this section, select any commit in the **Graph** section. You can check the changes that a commit has introduced by selecting them, which shows a difference. For example, the previous screenshot shows the changes that one commit introduced to the *Resize.cs* file.
3737

@@ -48,14 +48,33 @@ You can browse through any local or remote branch without having to switch your
4848
>
4949
> :::image type="content" source="media/vs-2022/git-repository-commit-details-full-screen.png" alt-text="Screenshot of full-screen commit details with diff configurations." lightbox="media/vs-2022/git-repository-commit-details-full-screen.png":::
5050
51-
### Multi-branch graph view
51+
### Multi-branch history view
5252

53-
**[New with version 17.7](/visualstudio/releases/2022/release-notes)**: When you open the Git Repo window, you start in the single branch view. You can then select any branch to add both the branch and its commits to a multi-branch graph view, which adds visual cues that make it more efficient to interact with multiple branches.
53+
**[New with version 17.7](/visualstudio/releases/2022/release-notes)**: When you open the Git Repo window, you start in the single branch view. You can then select any branch to add both the branch and its commits to a multi-branch history view, which adds visual cues that make it more efficient to interact with multiple branches.
5454

55-
:::image type="content" source="media/vs-2022/git-repository-multigraph-branch-view.png" alt-text="Screenshot of the multi-graph branch view in Visual Studio." lightbox="media/vs-2022/git-repository-multigraph-branch-view.png":::
55+
:::image type="content" source="media/vs-2022/git-repository-multigraph-branch-view.png" alt-text="Screenshot of the multi-branch history view in Visual Studio." lightbox="media/vs-2022/git-repository-multigraph-branch-view.png":::
5656

5757
There's both line coloring and branch labels on the left side of the **Local History** view that help make it easier to trace which commits belong to each branch. You can use the list of branches at the top of the table to scroll between branches more easily and know immediately which branches appear in the graph.
5858

59+
In the Branches / Tags section, hover over a branch to show the **Toggle Branch in History** hover button (the icon looks like an eye). By using the hover button, you can select which branches to show in the commit history view.
60+
61+
You can use the toolbar buttons at the top of the commit history view to customize the view and filter on branches.
62+
63+
- **Show First Parent Only**: Limit the history to only show the commit history as a single line, rather than side branches with their own sequence of commits.
64+
- **Show Local Branches**: Toggle whether or not to show labels for local branch in the history view.
65+
- **Show Remote Branches**: Toggle whether or not to show labels for remote branches that contribute to the commit history you're viewing.
66+
- **Show Tags**: Toggle whether or not to show labels for tags.
67+
68+
**Show Local Branches**, **Show Remote Branches**, and **Show Tags** all refer the label indicators on commits shown to the left side in the history view.
69+
70+
:::image type="content" alt-text="Screenshot showing indicator labels for branches and tags in the history view." source="./media/vs-2022/git-repository-branch-labels.png" :::
71+
72+
**[New with version 17.14](/visualstudio/releases/2022/release-notes)**: To focus on unsynced commits, you can use the **Show Outgoing/Incoming Only** toolbar button to change the history view to only show outgoing commits (not yet pushed from your current branch) and incoming commits (new on the remote).
73+
74+
:::image type="content" source="media/vs-2022/filter-incoming-outgoing-commits.png" alt-text="Screenshot showing the Git Repository window with the Show Outgoing/Incoming Only toolbar button." :::
75+
76+
You can also select **Show Outgoing/Incoming Only** on the context menu by right-clicking anywhere in the history view.
77+
5978
## Compare commits
6079

6180
To compare any two commits in your branch, use the **Ctrl** key to select the two commits that you want to compare. Then, right-click one of them and select **Compare Commits**.
36.7 KB
Loading
52.5 KB
Loading
102 KB
Loading
100 KB
Loading

0 commit comments

Comments
 (0)