Github, Local 연결
Github, Local 연결 ~
1.Git Bash Here
Git folder에서 Git bash 열기
2.Git 계정 정보 등록
git config –global user.name “이름”
git config –global user.email “이메일”
3. New Repository 생성
Repository name, Description, public, README 설정
4. Repository Link 가져오기
5. Repository Clone
git clone하면 remote add 명령 하지 않아도 된다.
git remote add origin github주소 => Github와 Local연결 해주는 명령어
6. Repository Clone
Local에 Github의 Repository가 들어옴
7. Repository 파일 추가
Local에서 새로운 파일 추가
8. Commit, push
새로운 파일 추가 후 bash here에서 add, commit, push 진행
git add .
git commit -m “message”
git push origin 브랜치 이름
위와 같은 순서로 진행