考虑到,当前读取(重新排序):
[iterating over command line arguments]
--reference)
case "$2" in '') usage ;; esac
reference="--reference=$2"
shift
;;
--reference=*)
reference="$1"
shift
来自man git-clone:
<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
我试图创建一个新的bare git存储库,但是我得到了这个错误:
Max:Git-Projekte max$ git clone --bare . ~/Dropbox/Git-Projekte/Mainpage.git
Cloning into bare repository '/Users/max/Dropbox/Git-Projekte/Mainpage'...
fatal: failed to open '/Users/max/Dropbox/Git-Projekte/./objects': No such file or directory
当我做一些git-clone时,我确实收到了这些警告,有人知道如何修复这些警告吗?
npm WARN eslint-config-react-app@5.2.0 requires a peer of eslint-plugin-flowtype@3.x but none is installed. You must install peer dependencies yourself.
npm WARN tsutils@3.17.1 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev ||
我想克隆带有参数(--recursive,-b <branch>)的git存储库,但是我得到了以下错误。
Traceback (most recent call last):
File "./git-clone.py", line 15, in <module>
r = git.Repo.clone(repo_dir, b=branch, recursive=git_url)
TypeError: unbound method clone() must be called with Repo instance as first argumen