title: How to configure a github repository as a config repo for spring cloud server?
body: <p>I have created a github repository <code>https://github.com/Nisarg04/microservices-config-repo.git</code>, which I want to be treated as a config repo. Also, I have a spring cloud server, which picks properties from local repo (as per current configuration). I want that to be picked from github repo.<br>
  <code>application.properties</code> looks something like this :<br></p>
  
  <pre><code>spring.application.name=spring-cloud-config-server
  server.port=8888
  #spring.cloud.config.server.git.uri=file:///C:/Users/admin/git/git-localconfig-repo
  spring.cloud.config.server.git.uri=https://github.com/Nisarg04/microservices-config-repo.git
  management.security.enabled=false
  </code></pre>
  
  <p>When I point to <code>git-localconfig-repo</code>, it works perfect. But, when I make it to point my repo, it gives be error as <code>Cannot clone or checkout repository: https://github.com/Nisarg04/microservices-config-repo.git</code></p>
  
  <p>How do I resolve this?</p>
  
  <p><strong>EDIT :</strong> Also tried <br>
  <code>spring.cloud.config.server.git.username=nisarg04</code>
  <code>spring.cloud.config.server.git.password=mypassword</code>
  but even this dint help</p>
  
  <p>As requested I have added server class below:  </p>
  
  <pre><code>@SpringBootApplication 
  @EnableConfigServer
  public class SpringCloudConfigServerApplication {
  public static void main(String[] args) {
      SpringApplication.run(SpringCloudConfigServerApplication.class, args);
    }
  }
  </code></pre>