-
[GIT] Git , Github 설치 및 사용법GIT 2023. 8. 16. 11:54
Git 설치
1. 깃 다운로드
Git
git-scm.com
공식 웹사이트에서 깃을 다운로드 한다
2. 설치 과정에서 두 가지 설정 변경
1) Use Visual Studio Code as Git's default editor로 변경
2) Main 선택3. 작업 할 폴더를 연 후 마우스 우클릭
Git Bash Here 클릭하면 터미널 창이 열린다
터미널 창에 ' code . ' 을 입력하면
작업할 폴더가 visual studio code에서 바로 열린다
Git 연결하기
1. Git Hub 가입
GitHub: Let’s build from here
GitHub is where over 100 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and fea...
github.com
2. 새로운 Repositories (저장소) 생성
New 클릭
이름 설정 / Public(공개) / Private (비공개) 선택 후 생성
3. 터미널에서 설정값 입력
1 ) git init (폴더 당 최초 한번만 입력)
2 ) git add 파일명 or . (전체 파일 선택 시 ) 로 파일 추가
3 ) git commit -m "메세지 입력" --> 큰 따옴표 안에 commit 메세지 입력
4) git push -u 저장소 주소 main (폴더 당 최초 한 번만 입력 / 후에는 git push로 프로젝트 푸쉬)4. 푸쉬한 저장소 링크에서 확인