为什么 Git 克隆复制不同的存储库?

Why is Git clone copying a different repository?

我正在按照 AngularJS tutorial 并使用说明克隆源代码:

Clone the angular-phonecat repository located at GitHub by running the following command:
git clone --depth=14 https://github.com/angular/angular-phonecat.git
This command creates the angular-phonecat directory in your current directory.

但是,运行 这在
~\users\myuser\development
创建
~\users\myuser\development\angular-phonecat
但里面没有源代码。它创建目录,但将我的个人 bitbucket 存储库克隆到新目录中。

我是否需要更改全局或本地设置或使用其他命令或参数来强制 git 从命令中声明的存储库中提取?


编辑 以下命令和输出应该添加一些颜色:

machinename:development user$> git config --get remote.origin.url
https://stuperuser@bitbucket.org/stuperuser/spikes.git

machinename:development user$> ls
spikes sublime-projects

machinename:development user$> git clone --depth=14 https://github.com/angular/angular-phonecat.git Cloning into 'angular-phonecat'...
Password for 'https://stuperuser@bitbucket.org':
remote: Counting objects: 58, done.
remote: Compressing objects: 100% (55/55), done.
remote: Total 58 (delta 3), reused 0 (delta 0)
Unpacking objects: 100% (58/58), done.
Checking connectivity... done.

machinename:development user$> ls
spikes sublime-projects
angular-phonecat

我检查了我的
~\.gitconfig
全局配置,我将它指向一个远程源,即那个特定的存储库。

删除该全局设置并重新运行命令正确克隆了存储库。