GIT 정리
깃을 설치하고 아래의 과정을 진행한다.
1. 이름설정
git config --global user.name "your_name"
2. 이메일 설정
git config --global user.email "your_email"
3. 정보확인 (하단부에 보면 위에 입력한 이름, 이메일이 잘 있는지 확인해볼 것)
git config --list
여기서부터는 VS코드에 들어가 터미널에 입력하는 과정이다.
4. 깃 초기화
git status
5. 추가할 파일 더하기
git add .
6. 히스토리 만들기
git commit -m "first commit"
7. Github repository랑 내 로컬 프로젝트랑 연결
git remote add origin https://github.com/bitnaGithub/firstproject.git
8. 잘 연결됬는지 확인 (선택사항)
git remote -v
9. 깃허브로 올리기
git push origin master
업로드 후 수정
1. 수정되었다면 재업로드
git add .
2. 업로드 명칭 입력하기
git commit -m "second commit"
3. 업로드 확정
git push origin master