Create a local branch

Git branch name

Switch to the local branch

Git checkout branch name

Create a local branch and switch

Git checkout -b branch name

Submit the local branch to the remote repository

“Git push origin” : “git push –set-upstream

Create a new local branch associated with a remote branch

Git branch — set — upstream: origin/ remote branch

Copy the specified branch

Git clone -b branch name repository address

Delete remote branch

Git push origin –delete branch name

Delete local branch

Git branch git branch git branch

Code back

Git reflog git reset — Hard version number that you want to go back