Github, Local 연결

less than 1 minute read

Github, Local 연결 ~

1.Git Bash Here

Git folder에서 Git bash 열기 gitbash

2.Git 계정 정보 등록

git config –global user.name “이름”

git config –global user.email “이메일” gitbash

3. New Repository 생성

Repository name, Description, public, README 설정 repo

link

5. Repository Clone

git clone하면 remote add 명령 하지 않아도 된다.

clone

git remote add origin github주소 => Github와 Local연결 해주는 명령어

6. Repository Clone

Local에 Github의 Repository가 들어옴 testrepo

7. Repository 파일 추가

Local에서 새로운 파일 추가 test

8. Commit, push

새로운 파일 추가 후 bash here에서 add, commit, push 진행 commit

git add .

git commit -m “message”

git push origin 브랜치 이름

위와 같은 순서로 진행

9. Git 파일 확인~~

complete