Force-pull property

There is a force-pull property provided and by default it is false. You can make it true to avoid making your local repository dirty. Let's look at the following configuration:

spring: 
 cloud: 
   config: 
     server: 
       git:  
      uri: https://github.com/dineshonjava/app-config-repo 
         username: arnav 
         password: sweety 
         force-pull: true 

Let's see how to implement the Spring Cloud Config Client application in the next section.

Get Mastering Spring Boot 2.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.