First let me explain why I need this question answered, so you can better understand my problem.
I am trying to make easy backup of folders that contain source files, and backup only the essential files. One of the steps that I need to do for this is remove the .svn/.git/etc. folders, because they contain a lot of files.
But I do want to keep the information about the checkout server, for example.
Is there any way to parse those files in order to retrieve this information? And if so, what do I have to look for?
You might want to capture .git/config. It contains information about the remote repository:
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
hideDotFiles = dotGitOnly
[remote "origin"]
url = gitolite@prscgitapp01.aligntech.com:platform/playground/BackendsManager
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
[branch "SessionAllocator"]
remote = origin
merge = refs/heads/SessionAllocator
[branch "alevin_testconfigs"]
remote = origin
merge = refs/heads/alevin_testconfigs