The very first steps in the documentation says that doing:

$ cd spring-cloud-config-server
$ ../mvnw spring-boot:run

will get you a result:

$ curl localhost:8888/foo/development
{"name":"foo","label":"master","propertySources":[
  {"name":"https://github.com/scratches/config-repo/foo-development.properties","source":{"bar":"spam"}},
  {"name":"https://github.com/scratches/config-repo/foo.properties","source":{"foo":"bar"}}
]}

specifically the links are : https://github.com/scratches/config-repo... this is not correct.

The links are actually: https://github.com/spring-cloud-samples/config-repo...

And the entire response is incorrect also. The thing is that https://github.com/scratches/config-repo contains a directory foo, while https://github.com/spring-cloud-samples/config-repo does not.

When you first try these things out, this gets very confusing, imo.