1. Identify the directory where the GIT repository is stored.
a. Navigate to the Config Server dashboard web page.
b. Identify the directory. For example:
`ssh://[email protected]:22/var/vcap/store/mirror/00957ad15f043b124e46eb212e90c4c8/repository.git`, you should take note of the directory,
`/var/vcap/store/mirror/00957ad15f043b124e46eb212e90c4c8/repository.git`
2. SSH into the mirror service virtual machine (VM):
bosh ssh -d <spring_cloud_service_deployment> <spring_cloud_services_vm>
3. Edit the GIT config file:
$ sudo -i
$ cd <directory_from_step_one>
$ vi config
The following is a sample Config Server:
[core]
repositoryformatversion = 0
filemode = true
bare = true
[remote "origin"]
url = https://username:[email protected]/swagataroy/cook-config
fetch = +refs/*:refs/*
mirror = true
Note: Edit the
`url` value to your meet your needs.
4. Check that the credentials are correct:
$ var/vcap/data -iname git -type f
/var/vcap/data/packages/git/<id>/libexec/git-core/git
/var/vcap/data/packages/git/<id>/bin/git
$ GIT_CURL_VERBOSE=1 GIT_TRACE=1
$ <git_path_from_previous_command> fetch origin