Git (3) 썸네일형 리스트형 [Git] 프로젝트 Git 연결 및 소스 업로드 * git 시작 $ git init * 전체 소스 add $ git add --all * 커밋 $ git commit -m "first commit" * master branch 이동 $ git branch -M master * 원격 저장소 추가 (private 저장소일 경우) $ git remote add origin https://{user.name}:{user.password}@github.com/solitas0817/{프로젝트 이름}.git * 원격 저장소 추가 (public 저장소일 경우) $ git remote add origin https://github.com/solitas0817/{프로젝트 이름}.git * master branch에 push $ git push -u origin master [Git] 로그인 계정 확인 및 계정 변경 * 현재 사용자 이름 확인 $ git config user.name * 현재 사용자 이메일 확인 $ git config user.email * 사용자 이름 변경 $ git config --global user.name {사용자 이름} * 사용자 이메일 변경 $ git config --global user.email {사용자 이메일} [Git] private 저장소 Clone 이슈 VSCode로 Clone을 했는데, "Repository not found." 라는 메세지가 노출됐다. 그동안 STS로 형상관리를 해온터라, git 명령어를 쓸일이 거의 없었는데.. 삽질한 내용은 아래와 같다. 1. git에 로그인한 계정이 다른가? 해서 확인해 봤고, 계정이 다르길래 변경하고 시도했으나, 실패.. 2. git의 private key를 발급 받아서 Git 설정의 key를 등록하고 시도했으나 실패.. clone하는 저장소에 접근권한이 있는 아이디와 비밀번호를 입력해주니 해결되었다! 기존 명령어 $ git clone https://github.com/[디렉터리명].git 변경 명령어 $ git clone https://[아이디]:[비밀번호]@github.com/[디렉터리명].git node... 이전 1 다음