728x90
반응형
1.
git init
맨 처음 초기화
git remote add origin https://깃허브 repo 주소
git remote -v # 상태 확인
로컬 저장소와 깃허브 repo를 연결
2.
git add "file_name"
git add .
올리고 싶은 file name을 입력하거나, 모든 파일을 저장할 때
3.
git commit -m "fist commit"
커밋해줌. -m뒤의 내용은 설명
4.
git push origin master
master가지 대신 다른 이름의 가지 넣으면 됨
git status # 상태 확인
728x90
반응형