“I use the new Git integration a lot. It is a simple and clean Git experience!”
– a GitHub user
– a GitHub user
Seamless integration with GitHub
Authenticate your GitHub.com or GitHub enterprise account to create a repository, and push your first commits to GitHub, all through Visual Studio.
Clone and code from within the IDE
Browse your GitHub repositories, and clone your repo down to your local machine to start committing and pushing.
Create and push new repos
Take local code and push it to a new repository on GitHub in one step. Visual Studio handles the local and remote repository creation. You can even choose to make the repo completely private.
Branching, staging, and committing
Create and switch between branches from the status bar. View your changes, stage the files you want to commit, and make commits with the Git Changes tool window.
Merge and Rebase
Merge or rebase branches after completing features directly from within Visual Studio. You can also choose to merge or rebase when pulling, or prune branches when fetching.
Resolve merge conflicts
Visual Studio will recognize merge conflicts right when they occur, and show you the unmerged changes in the Git Changes window. The built-in merge editor takes you through each conflicting change, allowing you to take either the incoming or current side, and shows the result when you accept the merge.
Browse your repository history
Use the Git Repository window to get a full picture of your branches and their history. Select individual commits to see details and file diffs. Some people prefer a to see their diff’s side-by-side and some prefer an inline view. Get both in Visual Studio. This setting persists when it’s changed so you can set it and forget it.
Integrated CI/CD workflows with GitHub actions
With Visual Studio Publish you can setup GitHub Actions for ASP.NET Core applications being deployed to Azure with ease. Visual Studio will generate a working GitHub Actions workflow for you with just a few clicks.