-
To delete a remote branch:
- git branch -a # View the list of remote branch
- git push origin --delete remote branch delete remote branch name #
-
Delete local branch:
- git branch # to view a list of the local branch
- git branch -d # remove the local branch branch name
-
Existing projects, pull remote branches to local:
- git fetch origin remote repository branch name # to leave a local remote branch
- the name of the local branch git checkout -b origin / remote branch name # Create a local branch and switch to the branch
- git pull origin remote branch # Name of the content on a local branch to pull