要克隆成myproject只做git clone .../584ffceed.git myproject.
关于你的另一个问题,你所要求的并不是很清楚.请重新说明问题以明确说明.
来自man git-clone:
git clone [--template=<template_directory>]
[-l] [-s] [--no-hardlinks] [-q] [-n] [--bare] [--mirror]
[-o <name>] [-b <name>] [-u <upload-pack>] [--reference <repository>]
[--dissociate] [--separate-git-dir <git dir>]
[--depth <depth>] [--[no-]single-branch]
[--recursive | --recurse-submodules] [--[no-]shallow-submodules]
[--jobs <n>] [--] <repository> [<directory>]
<directory>
The name of a new directory to clone into.
The "humanish" part of the source repository is used if no directory is explicitly given (repo for /path/to/repo.git and foo for
host.xz:foo/.git).
Cloning into an existing directory is only allowed if the directory is empty.
Run Code Online (Sandbox Code Playgroud)
它是直接放在存储库 URI 之后的参数 <directory>。
| 归档时间: |
|
| 查看次数: |
2779 次 |
| 最近记录: |