operate delete remote branch

This commit is contained in:
Aborn Jiang 2016-11-19 23:45:00 +08:00
parent 51c26c44b2
commit f770c260af
1 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,10 @@ git config --list
git init
git add .
git commit -m "Initial commit"
## 删除远程分支
git push origin :<branch_name> # v1.5+
git push origin --delete <branch_name> # v1.7+
## 与远端关联
git remote add origin <remote-git-url>
# example: git remote add origin git@code.dianpingoa.com:mobile/knb-ua-kit.git