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

  • IDE Irony: Coding Errors Cause 'Critical' Vulnerability in Visual Studio

    In a larger-than-normal Patch Tuesday, Microsoft warned of a "critical" vulnerability in Visual Studio that should be fixed immediately if automatic patching isn't enabled, ironically caused by coding errors.

  • Building Blazor Applications

    A trio of Blazor experts will conduct a full-day workshop for devs to learn everything about the tech a a March developer conference in Las Vegas keynoted by Microsoft execs and featuring many Microsoft devs.

  • Gradient Boosting Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the gradient boosting regression technique, where the goal is to predict a single numeric value. Compared to existing library implementations of gradient boosting regression, a from-scratch implementation allows much easier customization and integration with other .NET systems.

  • Microsoft Execs to Tackle AI and Cloud in Dev Conference Keynotes

    AI unsurprisingly is all over keynotes that Microsoft execs will helm to kick off the Visual Studio Live! developer conference in Las Vegas, March 10-14, which the company described as "a must-attend event."

  • Copilot Agentic AI Dev Environment Opens Up to All

    Microsoft removed waitlist restrictions for some of its most advanced GenAI tech, Copilot Workspace, recently made available as a technical preview.

Subscribe on YouTube