diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/production-ready-features.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/production-ready-features.adoc index 88b51fad2dc..53e6d8b0c62 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/production-ready-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/production-ready-features.adoc @@ -1194,6 +1194,13 @@ If you want to display the full git information (that is, the full content of `g mode: "full" ---- +To disable the git commit information from the `info` endpoint completely, set the configprop:management.info.git.enabled[] property to `false`, as follows: + +[source,properties,indent=0,configprops] +---- + management.info.git.enabled=false +---- + [[production-ready-application-info-build]]