9951 explained code solutions for 126 technologies


gitHow to update a branch from master


git checkout branch1
git merge origin/mainctrl + c
git

base command

checkout

jumps to specified branch

branch1

name of the branch to switch to

merge

merges changes to current branch

origin/main

merge changes from master (named main in our case)