Sometimes want to download their own uploaded source code on other machines, found that git is not as easy as SVN can see, these two days on the internet, and finally found a way.
There will always be a. Git directory under the usual local GitHub directory, click to enter, and see the file structure as shown:
Where config is the file we're looking for, open it, and see something like this, where the URL is what we're looking for.
[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
git config to find the downloaded path URL