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?
Most shell colorisation plugins and IDEs typically use *
for branch names denote that the current branch has files that have been modified, or sometimes only denote that the local repositories have files that were created, but not added to the "index" in git, which means those files haven't been git add
-ed. This is just a convention, and not a rule.
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
It means that you have changes in your parent branch. that means you have to 'git stash' and go back to your parent branch and get a 'git pull' and come to your branch and again 'git pull' from your parent branch. till here your branch is updated with your parent branch. and now you can get back your changes by 'git stash pop || apply'
© 2022 - 2024 — McMap. All rights reserved.