AWS CodeCommit으로 Git 실행하기

$git init
$git add some_files.txt
$git commit -m 'init project'
$git status
$git config --global credential.helper "!aws codecommit credential-helper $@"
$git config --global credential.UseHttpPath true
$git clone https://git-codecommit.ap-northeast-2.amazonaws.com/v1/repos/my-repo-name

$ aws configure
AWS Access Key ID [None]: YOUR-KEY--AXXXXXXXXXXXXXXXXXQ
AWS Secret Access Key [None]: YOURKEY---XdsfsdfsdX+vDFDSFSDF+Stestestsetsetest/yz
Default region name [None]: northeast-2
Default output format [None]: text

 가이드: https://docs.aws.amazon.com/ko_kr/codecommit/latest/userguide/setting-up-https-windows.html#setting-up-https-windows-credential-helper

init 취소할 때 .git 삭제

$rm -rf .git

[org.apache.http.impl.conn.PoolingHttpClientConnectionManager] Closing expired connections


[DEBUG] [org.apache.http.impl.conn.PoolingHttpClientConnectionManager] Closing expired connections
[DEBUG] [org.apache.http.impl.conn.PoolingHttpClientConnectionManager] Closing connections idle longer than 30 SECONDS

위와 같은 로그가 계속 찍힐 때 로그 레벨 조정.


<logger name="org.apache.http.impl.conn.PoolingHttpClientConnectionManager" level="warn" additivity="false">
<appender-ref ref="STDOUT" />
</logger>

Unirest를 사용하고 있는데 Unirest.shutdown(); 하면 다시 호출할 때 오류나니 shutdown은 하지 말고 로그 레벨 조정하기.