Tob*_*oby 106 git version-control configuration-files
使用语法执行第一次克隆时
git clone username@server:gitRepo.git
Run Code Online (Sandbox Code Playgroud)
是否可以使用本地存储库查找该初始克隆的名称?(所以在上面的例子中找到gitRepo.git)
Str*_*aff 89
git config --get remote.origin.url
Run Code Online (Sandbox Code Playgroud)
all*_*ait 85
在存储库根目录中,.git/config文件包含有关远程存储库和分支的所有信息.在你的例子中,你应该寻找类似的东西:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = server:gitRepo.git
Run Code Online (Sandbox Code Playgroud)
另外,git命令:.git/config
显示远程存储库名称和URL."origin"远程存储库通常对应于原始存储库,克隆了本地副本.
归档时间: |
|
查看次数: |
96565 次 |
最近记录: |