본문 바로가기
카테고리 없음

git 사용하여 파일업로드

by 향유 2022. 12. 16.

 

 

 

----------개발 환경설정

1.깃 회원가입

2.깃 사이트에서 repositiory 생성

3.git bash 설치

4.로컬pc에 로컬 저장소로 사용할 디렉토리 생성

5.해당 디렉토리에 마우스 우측 git bash here

git --version //설치확인

git init //로컬 저장소 설정

git status //수정리스트확인

git add . //모두 로컬에 올림

git commit -m //푸시를 위하여 원하는 메세지 등록하고 커밋

git remote add origin https://github.com/kys8976/cms.git //원격 주소 등록 데이터

git push origin master

git remote -v //주소등록 -로컬과 원격 연결

git push origin master  //원격저장소에 commit 데이터 올림

------------------------

파일 수정

git status

git add .

git commit -m "ㅇㅇㅇㅇㅇㅇㅇㅇㅇㅇ"

git push origin master

 

댓글