News

See What's New for Git in Latest Visual Studio 2022 Update

In the new Visual Studio 2022 Preview 2, four new features have been added to Git, the free and open source distributed version control system that powers Microsoft's GitHub and other code repository services.

Here's a quick look at the four new features:

  • Compare branches -- compare a checked-out branch with any local or remote branch. This feature provides an overview of differences between two branches which can be helpful in preparing a pull request, merge or deletion of a branch.
    Comparing Branches in Animated Action
    [Click on image for larger, animated GIF view.] Comparing Branches in Animated Action (source: Microsoft).
  • Checkout commit -- checkout the tip commit or any previous commit of remote and local branches. Checking out the tip of a remote branch helps developers quickly review a pull request and evaluate the latest updates.
  • Multi-repo branching -- manage and create new branches on all active repositories at the same time. Among other functionality, this lightweight branch management experience helps developers include updates from different remote branches. A developer can merge changes from someone else's branch by right-clicking on the branch under the Remotes tab and selecting Merge into Current Branch.
  • Line-staging -- split changes across different commits by staging sections of code changes. Sometimes called "interactive staging," this is described as one of the most popular Git suggestion tickets. This is a work-in-progress preview and the dev team is still enhancing the small number of features included in Preview 2, so there are some known issues and limitations.

Going forward, planned features include:

  • Ability to stage lines and chunks of code directly from the editor
  • Ability to un-stage lines and chunks of code
  • Refresh latency enhancements

All of the above is explained in detail in a Jan. 6 blog post.

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube