Common/Github
github 커밋하는 방법
OlttaeMelona
2022. 7. 17. 01:52
git을 설치한 후 git bash 프로그램 창을 연다
💡git bash
git config — global user.name "lona-log"
git config — global user.email. "a@gmail.com"
git config --list
- name과 email 접속 후 확인
- VS code 에서 github로 올릴 파일을 연다
- Vs code에서 Terminal을 연다
💡VS code Terminal
git init
git add .
git status
git commit -m "first commit"
- github로 이동 후 new repository 생성 후 repo주소복사
💡VS code Terminal
git remote add origin <https://github.com/lona-log/TIL.git>
git remote -v
git push origin master
++ 추가 작성 후 github에 업로드 하는 방법
git add .
git status
git commit -m "second commit"
git push origin master