Switch node versions using nvm

 Switch NodeJs versions using nvm


List all nodejs versions available

nvm ls-remote


Install specific version

nvm install 14.18.1


Install latest nodejs

nvm install node


List nodejs versions available in the machine

nvm ls


Switch to nodejs version

nvm use 16.13.0


Uninstall nodejs version

nvm uninstall 16.13.0

Git: Get changes from another branch

 Git: Get changes from another branch 


Suppose you are working branchA and somebody merged changes to main branch. You want pull latest changes from main to branchA.

option 1

git checkout main

git pull

git checkout branchA

git merge main


option 2

git rebase main


option 3

git pull origin main