Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does * alongside a branch name in VS-code mean?

I am unable to know why is there a * beside my git branch name in Visual studio code. Is there something I should be wary about?

like image 306
Dhannanjai Avatar asked Mar 20 '20 04:03

Dhannanjai


People also ask

What does alongside a branch name in VS Code mean?

* indicates you have unstaged changes (not been added yet) + indicates you have staged changes (added, but not commited) ! indicates unmerged conflicts.

What is branching in Visual Studio?

< Visual Basic. A branch is a point at which your program must make a choice. With these data structures, it is now possible to make programs that can have multiple outcomes. You may be familiar with the first type from Algebra, an If-Then statement, or If P then Q.

How do I select a branch in VS Code?

Access the "Source Control" tab on the left side of VSCode. Click on the "three small dots" next to the refresh button. Click on the "Checkout to..." option. Choose the branch you want to switch to.

How do I find the branch name in Visual Studio?

Visual Studio displays the current branch in the selector at the top of the Git Changes window. The current branch is also available in the status bar on the bottom-right corner of the Visual Studio IDE.


1 Answers

This can also mean that you have a git stash. You can get this sometimes when you make changes on a branch and then switch branches. A lot of ide's don't carry the changes over so they save them to that branch. To get the changes back you can run

git stash pop 

or to just delete them you can do

git stash drop
like image 169
stegnerd Avatar answered Oct 05 '22 16:10

stegnerd