※ local PC 에 git hub 가 설치 되어 있다는 조건 하에 저장소 생성 진행합니다.
1. bash 창 열기
2. README.md 파일 생성
echo "# plan" >> README.md
- 파일의 내용은 # plan 로 생성
3. 커밋
$ git commit -m 'default'
On branch master
Initial commit
Untracked files:
README.md
madeScenario.php
plan.php
planExec.php
planListLib.php
setDiffLib.php
nothing added to commit but untracked files present
- 커밋시 nothing added to commit but untracked files present 에러 발생시 대체 방법
git add ./*
- 해당 파일들을 git 에 추가해 준다.
- 다시 커밋
git commit -m 'default'
4. origin 별칭 설정
git remote add origin https://github.com/zeropul/plan.git
- 저장소 별칭을 origin 으로 설정
- Clone(복제)하게 되면 origin 이라는 별칭을 볼 수 있다.
5. 저장소 push
git push -u origin master
- 최초 저장소 푸시 할 때 로그인 하라는 팝업창이 노출 되는데 로그인 후 푸시 가능하다.

- github 저장소에 푸시 된 파일 목록이 확인 된다.
Tags:
github

