- [[git merge]] # Idea ```sh # create a new branch git branch x # create a new branch move into it git checkout -b x # show all branches git branch --all git branch -a # check out or go into a branch git checkout x # delete a branch git branch -d x # --delete git branch -D x # --delete --force ``` # References - https://stackoverflow.com/questions/23208156/why-do-we-use-double-dash-in-git-checkout - https://stackoverflow.com/questions/2003505/how-do-i-delete-a-git-branch-locally-and-remotely