728x90

1. 변경된 모든내용 추가

git add -A

 

2. 추가한 내용 commit

git commit -m ~~~

예시) git commit -m 'initial commit' https://github.com/websterking/repo.git


3. 커밋한 사항 푸시

git push 원격저장소 주소

예시) git push https://github.com/websterking/repo.git

 

4. 푸시된 내용 pull

git pull 원격저장소 주소

예시) git pull https://github.com/websterking/repo.git 


5. 프로젝트 가져오기

git clone 원격저장소 주소

예시) git clone https://github.com/websterking/repo.git




**간혹, 권한을 요구할경우 앞에 sudo를 붙여준다

예시) sudo git clone https://github.com/websterking/repo.git

728x90
반응형
728x90

1. Github 가입 > https://github.com


2. 좌측의 Repositories의 New를 통해 새 레포지토리 생성


3. Repository의 이름(필수), 설명(선택)을 작성


4. 공개범위를 선택 (기본은 Publice으로 전체공개, 개인 프로젝트이거나 비공개를 희망하면 Private으로 변경)


5. Create Repository 버튼을 통해 저장소(Repository) 생성 완료


6. 생성후 나타나는 명령어를 저장 혹은 기록

(위는 예시)


7. 로컬(나의 컴퓨터)에 있는 프로젝트 경로에서 Command Line Interface(윈도우의 cmd. powershell, linux mac등의 bash)를 실행


8. 위의 명령어를 순서대로 모두 실행


9. Github에서 정상적으로 첫 커밋이 실행되었는지 확인

728x90
반응형