Skip to content

Repo sync for protected CLA branch #8562

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Oct 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/msbuild/errors/msb3577.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ In MSBuild 16.10 and later, you can use `TargetPath` metadata to disambiguate th
<Content Include="Files\**">
<Link>Files\%(Filename)%(Extension)</Link>
<TargetPath>%(Filename)%(Extension)</TargetPath>
<CopyToOutputDirectory>PreserveNewest<CopyToOutputDirectory>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
```

Expand Down
20 changes: 10 additions & 10 deletions docs/version-control/git-with-visual-studio.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: The Git experience in Visual Studio
titleSuffix: ""
description: Learn how Git makes source control in Visual Studio more productive.
ms.date: 02/06/2022
ms.date: 10/13/2022
ms.topic: overview
author: Taysser-Gherfal
ms.author: tglee
Expand All @@ -12,13 +12,13 @@ ms.technology: vs-ide-general
ms.custom: version-control

---
# How Visual Studio makes version control easy with Git
# How Visual Studio makes version control easy with Git

[!INCLUDE [Visual Studio](~/includes/applies-to-version/vs-windows-only.md)]

Have you ever wished you could go back to a previously working version of your code? Do you find yourself manually storing copies of your code in different locations as a backup? Well, version control is the answer.
Have you ever wished you could go back to a previously working version of your code? Do you find yourself manually storing copies of your code in different locations as a backup? Well, version control is the answer.

Git is the most widely used modern version control system. With Git, you can track the code changes you make over time and you can revert to specific versions. So whether you're a professional developer or if you’re learning how to code, Visual Studio's Git experience can be very useful to you.
Git is the most widely used modern version control system. With Git, you can track the code changes you make over time and you can revert to specific versions. So whether you're a professional developer or if you’re learning how to code, Visual Studio's Git experience can be very useful to you.

>[!Tip]
> To learn about using Git and GitHub in Visual Studio, sign up for the [Git learning series](https://visualstudio.microsoft.com/vs/github/).
Expand All @@ -27,17 +27,17 @@ Git is the most widely used modern version control system. With Git, you can tra

## Start with Git & GitHub in Visual Studio

Version control with Visual Studio is easy with Git. We meet you where you are. You can work remotely with the Git provider of your choice, such as GitHub or Azure DevOps. Or, you can work locally with no provider at all.
Version control with Visual Studio is easy with Git. We meet you where you are. You can work remotely with the Git provider of your choice, such as GitHub or Azure DevOps. Or, you can work locally with no provider at all.

To get started using Git with Visual Studio:

- If you have a Git repo hosted on a Git provider like GitHub, [clone the repository](git-clone-repository.md) to your local machine.
- If you have a Git repo hosted on a Git provider like GitHub, [clone the repository](git-clone-repository.md) to your local machine.

- Otherwise, easily [create a new Git repository and add your code](git-create-repository.md). If you don't have a Git provider yet, we recommend you start with GitHub since the Git experience in Visual Studio is optimized for this provider. GitHub offers free and secured cloud code storage where you can store your code and access it from any device, anywhere.
- Otherwise, easily [create a new Git repository and add your code](git-create-repository.md). If you don't have a Git provider yet, we recommend you start with GitHub since the Git experience in Visual Studio is optimized for this provider. GitHub offers free and secured cloud code storage where you can store your code and access it from any device, anywhere.

Not only can you add both [GitHub and GitHub Enterprise accounts to your keychain](../ide/work-with-github-accounts.md), but you can also leverage them just as you do with Microsoft accounts. If you don’t have a GitHub account, follow these steps to [create a GitHub account to use with Visual Studio](git-create-github-account.md) now.

If you're new to Git, the [https://git-scm.com/](https://git-scm.com/) website is a good place to start.
If you're new to Git, the [https://git-scm.com/](https://git-scm.com/) website is a good place to start.

:::image type="content" source="media/git-source-control-create-repository.png" alt-text="The Create a Git Repository dialog box in Visual Studio.":::

Expand All @@ -47,7 +47,7 @@ When you clone a repository or open a local repository, Visual Studio switches t

## Intuitive inner-loop workflow

For your day-to-day Git workflow, Visual Studio provides a seamless way to interact with Git while coding without having you switch away from your code.
For your day-to-day Git workflow, Visual Studio provides a seamless way to interact with Git while coding without having you switch away from your code.

You are empowered to multi-task and experiment with your code through branches. If you or your team works on multiple features at the same time, or if you'd like to explore ideas without affecting your working code, branching is very helpful. The recommended Git workflow uses a new branch for every feature or fix that you work on. Learn how to [create a branch](git-create-branch.md) from Visual Studio.

Expand All @@ -61,7 +61,7 @@ If you are working in a team or if you are using different machines, you will al

## Repository management & collaboration

However, there are times when it makes more sense to focus on your Git repository. For example, you might need to get a good picture of what your team has been working on, or copy a commit from a different branch, or just clean-up your outgoing commits. Visual Studio includes powerful [repository browsing](git-browse-repository.md) and collaboration features that eliminate the need to use other tools.
However, there are times when it makes more sense to focus on your Git repository. For example, you might need to get a good picture of what your team has been working on, or copy a commit from a different branch, or just clean-up your outgoing commits. Visual Studio includes powerful [repository browsing](git-browse-repository.md) and collaboration features that eliminate the need to use other tools.

To help you focus on your Git repository, Visual Studio has a **Git Repository** window, which is a consolidated view of all the details in your repository, including local and remote branches and commit history. You can access this window directly from either **Git** or **View** on the menu bar or from the status bar.

Expand Down
2 changes: 1 addition & 1 deletion docs/version-control/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
title: Version control & source control with Git docs # Required; page title displayed in search results. Include the brand. < 60 chars.
description: Use version / source control technologies in Visual Studio. You can share, integrate, and manage your code releases in Git & GitHub without leaving your codebase.
ms.topic: landing-page
ms.date: 08/09/2022
ms.date: 10/13/2022
author: TerryGLee
ms.author: tglee
manager: jmartens
Expand Down