Skip to content

Commit

Permalink
补充比英文版缺少的内容
Browse files Browse the repository at this point in the history
  • Loading branch information
icaoweiwei authored and networm committed Apr 30, 2018
1 parent 1141ceb commit a2e412c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions book/10-git-internals/sections/refspec.asc
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,10 @@ $ git push origin :topic
----

因为引用规格(的格式)是 `<src>:<dst>`,所以上述命令把 `<src>` 留空,意味着把远程版本库的 `topic` 分支定义为空值,也就是删除它。

或者你可以使用更新的语法(自Git v1.7.0以后可用):

[source,console]
----
$ git push origin --delete topic
----

0 comments on commit a2e412c

Please sign in to comment.