[Git] 깃허브 레파지토리 관리하기(clone/remote/pull/push)

업데이트:

[처음]레파지토리 -> 내 컴퓨터 가져올때

git clone 레파주소 


Repository 변경하고 싶을 때

git remote add origin 주소


레파지토리 -> 내 컴퓨터 가져올때

레파 변경 후,

git status
git pull origin master


내 컴퓨터 -> 보낼 때

git status
git add .
git commit -m "메세지"
git push origin master


추가로, 가져오고 보낼 때 계정 로그인하라고 하면

$ git config --global user.name unni2
$ git config --global user.email unni2@naver.com
git config --list //현재 계정 리스트 확인

카테고리:

업데이트: