# Uses branches in git git branch # show branches # current branch is marked with a '*' git branch -vv # verbose mode # show tracked branches git branch -a # show all branches, including remote # branches git fetch # fetch branches from, by default, origin git switch # switch to , making it current # if is remote, create a local # tracking branch of same name and switch # to it git switch -c # create as a local branch, # and make it the current branch git diff # show differences between in # current branch and # Only necessary if you want to publish another branch. I.e., share it # with others. git push -u # push current branch to # as . # current branch tracks # Subsequent pushes -- # 'git push' git merge # merge into current branch # Only necessary if you want to delete a branch once you're finished with it. # I.e., merged it in to main. git push -d # delete remote branch git branch -d