2015年9月10日 星期四

[Git] Delete a remote branch

 GIT   GitHub  

Delete a remote branch


When I deleted the local branch by

git branch -d <BranchName>


, and wanna do push it.

git push origin : <BranchName>


The error message showed as following:

error: src refspec BranchWithEmailCheck does not match any.


The correct way:

git push origin --delete <BranchName>





Reference


沒有留言:

張貼留言