Git (4) 썸네일형 리스트형 [Git] remote 명령어로 GitHub 올리기(원격저장소 연결 및 끊기) GitHub에 프로젝트를 연결해서 올리려면 remote 명령어를 이용하면 된다. - 원격 저장소 연결 : git remote add origin 주소 ex) git remote add origin https://github.com/carrotdy/test.git - 원격 저장소 끊기 : git remote remove origin - 원격 저장소 버전 확인 : git remote -v 이 다음부터 git push origin main -> git add . -> git commit -m "bottom tabs" -> git push origin main 차례대로 명령어 입력해서 원격 저장소에 올린다. [Git] 터미널에서 Git 명령어 사용하기(+깃허브) 최초연결 https://0ver-grow.tistory.com/888 [VSCODE] Visual studio code에서 git 허브와 연동하기 / git 허브 커밋하기 깃허브 연동하기 1. 깃허브와 연동하기 VSCODE에서 F1키 누르기 git clone 입력 Git : Clone 메뉴 선택 만약, git clone을 입력했음에도 No matching commands라고 뜬다면? git-scm.com/에서 깃허브를 설치해야된다. 0ver-grow.tistory.com 브랜치 작업 관리하는 폴더를 git 초기화 설정으로 git 버전관리 상태로 만들기 : git init -> 터미널에 명령어를 입력하면 지정한 git 폴더가 생성된다 (이 폴더에서 관리) 브랜치 목록 : git branch 브랜치 생성 :.. [Git] git init 입력하면 Using 'master' as the name for the initial branch 에러 메세지 git을 초기화하면 아래와 에러가 뜨는데 왜 뜨는걸까? //git init 입력 hint: Using 'master' as the name for the initial branch. This default branch name hint: is subject to change. To configure the initial branch name to use in all hint: of your new repositories, which will suppress this warning, call: hint: hint: git config --global init.defaultBranch hint: hint: Names commonly chosen instead of 'master' are 'main', 'tr.. [Git] clone명령어로 GitHub 로컬에 가져오기 GitHub에 있는 프로젝트를 로컬에 가져오고 싶다면 clone을 활용하면 된다. GitHub Desktop을 이용하는 방법도 있지만 터미널을 이용하는 방법으로 정리해보았다. 1. cd ~ : 홈 디렉토리 이동 2. pwd : 현재 디렉토리 3. ls : 현재 위치한 경로 안의 내용 출력 4. cd test : test 폴더 (폴더경로) 5. git clone + 주소입력 주소는 깃허브 홈페이지 -> code -> clone -> HTTPS : 주소 복사해서 붙여넣기 git을 사용하다 브랜치 전체를 clone하지 않고 특정 브랜치 하나만 clone하는 것이 가능하다. git clone -b {branch_name} --single-branch {저장소 URL} ex) git clone -b 다영 --si.. 이전 1 다음