git config找到下载的路径URL

时间:2015-06-14 18:15:21   收藏:0   阅读:286

 

有时想在别的机器上下载自己的上传的源代码,发现git不像svn那么方便一眼就能看到下载地址,这两天在网上查了一下,终于找到方法了.

一般本地的github目录下总会有一个.git目录,点击进入,可看到如下图所示的文件结构:

技术分享

其中config即为我们要找寻的文件,将之打开,会看到类似如下内容,其中的url即为我们要找寻的下载地址

[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
hideDotFiles = dotGitOnly
[remote "origin"]
url = https://git.oschina.net/luhouxiang/JavaStudy.git
puttykeyfile = C:\\Users\\luhx\\.ssh\\JavaStudy.ppk
pushurl = https://git.oschina.net/luhouxiang/JavaStudy.git
    fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
[gui]
wmstate = normal
    geometry = 799x475+75+75 380 214

原文:http://www.cnblogs.com/luhouxiang/p/4575308.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!