diff --git a/blueocean-git-pipeline/pom.xml b/blueocean-git-pipeline/pom.xml
index 2fa6b48b55..e2599d45c5 100644
--- a/blueocean-git-pipeline/pom.xml
+++ b/blueocean-git-pipeline/pom.xml
@@ -39,6 +39,13 @@
org.eclipse.jgit.ssh.jsch
6.9.0.202403050737-r
+
+
+
+ org.eclipse.jgit
+ org.eclipse.jgit
+
+
diff --git a/blueocean-git-pipeline/src/main/java/io/jenkins/blueocean/blueocean_git_pipeline/GitUtils.java b/blueocean-git-pipeline/src/main/java/io/jenkins/blueocean/blueocean_git_pipeline/GitUtils.java
index f040c2c5d9..dbaacefb17 100644
--- a/blueocean-git-pipeline/src/main/java/io/jenkins/blueocean/blueocean_git_pipeline/GitUtils.java
+++ b/blueocean-git-pipeline/src/main/java/io/jenkins/blueocean/blueocean_git_pipeline/GitUtils.java
@@ -344,7 +344,7 @@ public static void commit(final Repository repo, final String refName, final Str
final CommitBuilder commit = new CommitBuilder();
commit.setAuthor(author);
commit.setCommitter(author);
- commit.setEncoding(Constants.CHARACTER_ENCODING);
+ commit.setEncoding(StandardCharsets.UTF_8);
commit.setMessage(message);
//headId can be null if the repository has no commit yet
if (headId != null) {