This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.example; | |
import lombok.RequiredArgsConstructor; | |
import java.time.LocalDateTime; | |
import java.time.temporal.TemporalAdjusters; | |
import java.util.Arrays; | |
import java.util.Objects; | |
import java.util.OptionalInt; | |
import java.util.stream.Collectors; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1、安装gclient环境、git、python2.7以上 | |
2、使用翻GFW代理并导出配置代理环境变量: | |
suke-2:engine suke$ export http_proxy="http://127.0.0.1:8001"; export HTTP_PROXY="http://127.0.0.1:8001"; export https_proxy="http://127.0.0.1:8001"; export HTTPS_PROXY="http://127.0.0.1:8001" | |
3、配置git代理: | |
suke-2:engine suke$ git config --global http.proxy $HTTP_PROXY | |
suke-2:engine suke$ git config --global https.proxy $HTTPS_PROXY | |
PS.>>>git拉取完成后记得关闭: | |
suke-2:engine suke$ git config --global --unset http.proxy | |
suke-2:engine suke$ git config --global --unset https.proxy |