git remote add origin git@gitlab.com:그룹명/프로젝트명.git
git remote set-url origin git@gitlab.com:그룹명/프로젝트명.git
origin https://gitlab.com/idy_dev/2601.ref-web-front.git (fetch)
origin https://gitlab.com/idy_dev/2601.ref-web-front.git (push)
git remote add origin git@gitlab.com:...
git remote add origin ... -> 에러남 remote origin already exists.
git remote set-url origin git@gitlab.com:...
ls ~/.ssh
아래 파일이 있으면 ssh 키가 이미 있는 상태
id_ed25519
id_ed25519.pub
ssh -T git@gitlab.com
성공하면
Welcome to GitLab, @아이디!
이렇게 나옴 -> gitlab ssh 인증 완료
ssh-keygen -t ed25519 -C "GitLab 이메일"
공개 키를 확인한다
cat ~/.ssh/id_ed25519.pub
출력된 내용을 복사해서 GitLab에 등록한다
git pull origin main
npx create-next-app@latest .
git pull origin main # README 가져오기
rm README.md # (선택)
npx create-next-app@latest .