git push 하기
local 부분
$ mkdir 폴더명 //폴더 만들기
$ cd 폴더명 //폴더로 들어가기
$ git init //폴더 경로에 git을 적용시키기
파일생성하기
$ vi text.txt
에디터에서 'i'누른 후 아무 텍스트나 입력하고 :wq 엔터
commit하기
$ git add . //statge에 올리기
$ git commit -m "hello" //commit메시지 입력
remote 생성
$ git remote add origin https://github.co...
pull 하기 (github에 기존 파일이 있으면)
$ git pull origin master
push 하기(pull 이후, 기존 파일이 없으면)
$ git push origin master
'기타 > Git' 카테고리의 다른 글
git 사용법 (0) | 2017.10.23 |
---|---|
GIT_github (0) | 2017.08.19 |
GIT_branch (0) | 2017.08.19 |
GIT_commit, reset, revert (0) | 2017.08.19 |