Skip to content

Commit a2e412c

Browse files
icaoweiweinetworm
authored andcommitted
补充比英文版缺少的内容
1 parent 1141ceb commit a2e412c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

book/10-git-internals/sections/refspec.asc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,10 @@ $ git push origin :topic
130130
----
131131

132132
因为引用规格(的格式)是 `<src>:<dst>`,所以上述命令把 `<src>` 留空,意味着把远程版本库的 `topic` 分支定义为空值,也就是删除它。
133+
134+
或者你可以使用更新的语法(自Git v1.7.0以后可用):
135+
136+
[source,console]
137+
----
138+
$ git push origin --delete topic
139+
----

0 commit comments

Comments
 (0)