Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

vscode open two branches side by side

Darkstar answered on April 24, 2023 Popularity 6/10 Helpfulness 1/10

Contents


More Related Answers

  • vscode open files by branch
  • vs code view nested folders on one line
  • multiple line selection vscode
  • vscode select multiple lines
  • vs code select multiple lines
  • make it so vs code doesn't show subfilders side by side

  • vscode open two branches side by side

    0

    utilising the git worktree command, you can create a second worktree for the same repository in a different directory. You can then open that work tree in visual studio to have two different branches checked out.

    Let's say you have `C:\projects\the_project` and you want to make a new work tree at e.g, C:\projects\the_project_2, open git bash, navigate to the project's directory and run  

    where is the branch you want checked out in the new work tree.

    This will create a new directory "C:\projects\the_project_2") and checkout the branch into it, without having to re-clone the repository 

    Popularity 6/10 Helpfulness 1/10 Language shell
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Apr 24 2023
    Darkstar
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.