New branches and associated operating github

View branch

Check local branch

git branch

View remote branch

git branch -r

View all branches

git branch -a

Creating a branch

Create a local branch

git branch branch-name

Switch to the new branch

git chenckout branch name

Branch push to a remote repository

This operation will correspond to the new warehouse in a remote branch
git push origin branch name

Deleted branches

Delete the local branch

git branch -D branch name

Guess you like

Origin www.cnblogs.com/xj520dpl/p/11279508.html