GIT

개발

GIT ssh 연결

1. SSH 키 생성아래의 명령어로 키를 생성한다ssh-keygen -t ed25519 -C "your_email@example.com"아래의 명령어로 ssh-agent에 추가한다eval "$(ssh-agent -s)" ssh-add ~/.ssh/id_ed25519참고 : https://docs.github.com/ko/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent 2. Github에 키 등록~/.ssh/id_ed25519.pub의 내용을 클립보드에 복사한다github에 로그인한 후, 계정 설정에 접속한다SSH and GPG key > SSH keys에서 New SSH k..

개발

GIT 명령어 정리

1. 저장소 관리Clonegit clone ${URL}Initializegit init git remote add origin ${URL} 2. 파일 관리addgit add .commitgit commit -m ${MESSAGE}push# 원격 연결 후 최초 1번만 실행 git push --set-upstream origin ${BRANCH_NAME} # 일반적 push git push 3. 브랜치 관리목록 확인git branch생성git branch ${BRANCH_NAME}이동git switch ${BRANCH_NAME} git checkout ${BRANCH_NAME} # 구버전삭제git branch -D ${BRANCH_NAME} # 로컬 브랜치 삭제 git push origin --delete ..

'GIT' 태그의 글 목록
devskim