Git과 Github에 대해서 - 로컬 디렉토리를 원격에 연결하기

jane·2021년 11월 28일
1

Git/Github

목록 보기
7/7

로컬에 Xcode 파일이 들어있는 디렉토리를 만든다.
원격 Github에도 새 repository를 만든다.

둘을 연결할 때

git init
git remote add origin https://github.com/siwonkim0/delegatePractice.git
git add .
git commit -m "initial commit"
git push -u origin master

add 와 commit를 하지 않고 push하면

이런 에러 메세지가 뜨니 꼭 add 와 commit를 하자.

profile
제가 나중에 다시 보려고 기록합니다 ✏️

0개의 댓글