본문 바로가기

GIT

(3)
[Git] 깃허브 토큰 생성 하는 법 / remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. remote: Support for password authentication was removed on August 13, 2021. Please use a p ersonal access token instead. remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-gi t-operations/ for more information. Ubuntu에서 clone을 하려고 하니 오류가 발생했다. 2021년 8월 13일부터 Account Password를 사용하지 않으니 push, pull, clone을 하려면 깃허브에서 토큰을 생성하여야 한다. 토큰 생성법 Personal access tokens - ..
LF will be replaced by CRLF the next time Git touches it 오류 터미널에서 git add . 를 실행했을 때 아래와 같은 에러 메세지가 발생했다. warning: in the working copy of 파일, LF will be replaced by CRLF the next time Git touches it 원인 OS마다 줄바꿈 문자열이 다르기 때문에 GIT에서 어떻게 받아들여야할지 몰라 에러 메세지를 띄운 것. LF : MAC, Linux에서 사용되는 줄바꿈 문자열(\n)CRLF : Window에서 사용되는 줄바꿈 문자열(\r\n) 해결방법 core.autocrlf : LF와 CRLF를 서로 변환해주는 기능. * 해당 프로젝트에만 적용할 거라면 -- global 옵션을 빼고 적용한다. Windows, DOS 명령어 git config --global core.a..
GIT과 GITHUB 연동하기 1. GIT 초기 설정 사용자 이름, 이메일 주소 설정 $ git config --global user.name "[깃허브 아이디]" $ git config --global user.email "[깃허브 이메일]" *이메일은 Settings - Emails 에서 확인할 수 있다. 2. SSH 키 생성 $ ssh-keygen -t rsa -C "[깃허브 이메일]" * 질문에 enter만 치면 기본값으로 생성된다. user/.ssh/id_rsa에 pub 파일 생성.생성된 pub 파일을 메모장으로 열어 파일 내용을 복사한다. GITHUB 홈페이지 접속 -> Settings -> SSH and GPG Keys -> new SSH Key 클릭 Title을 입력하고 Key에 복사한 것을 붙여넣고 Add SSH ke..