Como verificar qual Brach estamos no git
git branch -a # it will show an astrick * like *master
git branch --show-current # source == git remote --help
fast_and_the_curious
git branch -a # it will show an astrick * like *master
git branch --show-current # source == git remote --help
//when on branch 'dev' make branch 'myFeature' off of 'dev'
git checkout -b myFeature dev
git switch branch_name
git checkout branch_name
git switch branch_name_to_switch_to
#you will switch to that branch and changes between them will take effect
Note: changes if you switch to a branch will change back once you switch
back to the original branch/
git switch <branch_name> // switches to branch
git checkout <branch_name> // deletes file that were not pushed and just copies the branch to local repo
git checkout master
git branch {branch_name}
git checkout {branch_name}