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.