新手问题 git remote get-url [--push] [--all] <name> 这种命令里 [] <> 分别代表什么?

zzz6519003 · 2016年12月17日 · 最后由 nightire 回复于 2016年12月17日 · 2555 次阅读
or: git remote get-url [--push] [--all] <name>
or: git remote set-url [--push] <name> <newurl> [<oldurl>]

[] 表示可选的参数 <> 表示必填的参数 另外,你在哪看到的 git remote 有 get-url 的命令?只有 set-url 吧。

#1 楼 @fubu git-remote 有 get-url 子命令,可以 man 一下看看。

需要 登录 后方可回复, 如果你还没有账号请 注册新账号