Ruby on Rails - 멋쟁이 사자처럼

C9에서 Git에 commit 하기

INSPECT 2017. 1. 20. 19:37

[First commit]


1. github.com 에서 저장소를 만든다. 저장소 이름을 유의해서 기억해둔다.


2. git init


3. git add .


4. git commit -m "first commit"


5. git remote add origin 주소


* 여기서 주소는 github 저장소 주소이다. "https://github.com/저장소 이름.git" 형식이다.


6. git push -u origin master


7. username과 password 입력


이 작업까지 끝나면 저장소 이름으로 접속가능하다.



[수정]


1. git status - 수정내역 확인


2. git add .


3. git commit -am "설명"


4. git push origin master