[카테고리:] 개발
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
init 취소할 때 .git 삭제
$rm -rf .git
javascript set textarea value with line breaks
set textarea value with line breaks.
let replaceText = $("#replaceText").html().replace(/\n/g, '\n');
$("#textarea").val(replaceText);