Branching in VS Code
Create Branch
- Open VSCode
- Source Control
- Branches > Master > Right Click > Create Branch
- Choose Create branch and switch
View Current Branch
- In VS Code > Source Control > Branches > Tick mark on branch.
- Left bottom corner > branch name
Compare Branches
- Under branches > expand current branch > compare
Switch Branch
- Bottom Left Corner > Click > Choose branch
Merge Branch
- Right click branch > Choose Merge branch into current branch > Merge
- Under source control > Choose file for conflicts
Revert Commit
- Choose commit > Right Click > Revert
Reset Commit
- Choose commit to which you want to reset > Right click > Reset > Choose Hard
Stashes
- Makes changes
- Stashes > Stash all changes
- Choose stash > Apply changes