Browse Source

git

master
educoder 3 years ago
parent
commit
7dd86bec1f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      web/src/main/java/com/imitate/web/module/game/service/GitAccountService.java

+ 1
- 1
web/src/main/java/com/imitate/web/module/game/service/GitAccountService.java View File

@@ -36,7 +36,7 @@ public class GitAccountService {
logger.debug("获取git凭证信息: {}", out);
if (StringUtils.isEmpty(out) || !out.contains(username) || !out.contains(password)) {
String setCmd = "git config --global user.email educoder@163.com"
+ " && git config --global user.name wangwei10061\n" + " && git config --global credential.helper store"
+ " && git config --global user.name wangwei10061" + " && git config --global credential.helper store"
+ " && echo -e 'protocol=" + protocol + "\nhost=" + gitIP + "\nusername=" + username + "\npassword="
+ password + "' | git credential approve";
setGitCredential(setCmd, gitIP);


Loading…
Cancel
Save