how to sync renamed branch from github to vscode? #58675
-
|
Hello, I renamed my In my case I think I'm safe to delete the build branch, but I would like to know the correct way of syncronizing the 2, because I may come across a situation where deleting the branch isn't ideal. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi!! If you renamed your branch from "build" to "develop" on GitHub, but you still see both branches in Visual Studio Code source control, you might need to update your local repository information to reflect this change. Here are the steps you can follow to properly sync branches in Visual Studio Code:
Remember, it's always good practice to back up your repository before making significant changes to branches, to avoid accidentally losing code. Hope it helps! |
Beta Was this translation helpful? Give feedback.

Hi!! If you renamed your branch from "build" to "develop" on GitHub, but you still see both branches in Visual Studio Code source control, you might need to update your local repository information to reflect this change.
Here are the steps you can follow to properly sync branches in Visual Studio Code:
Open Visual Studio Code and open the Source Code Control dashboard. Make sure you are in your repository directory.
In the source control control panel, make sure you are in the "build" branch. Otherwise, switch to the "build" branch.
Run the command (into the terminal) to update the local repository information with the git pull command. This will ensure that you have the latest cha…