github에 업로드 하기 ( from Window )
* github에 저장소 만들기
1. github에 신규 저장소 생성 ( Create a new repository )
* 로컬 저장소(PC 또는 작업 디렉토리)
2. Open Git Bash ( 작업 디렉토리에서 )
3. Git 저장소를 초기화 ( 작업 디렉토리에서 )
$ git init
4. 로컬 저장소에 변경된 부분을 추가
$ git add . (또는 git status로 변경된 부분을 확인후 개별 등록 가능 )
5. Commit (변경된 부분에 대한 주석 추가)
$ git commit -m "First commit"
* 6-7은 fork하는 원본 저장소의 변경 사항을 가져올떄만...
6. Copy link the remote repository URL ( Copy URL )
7. 로컬 저장소에 remote repository를 추가
$ git remote add origin [remote repository URL]
8. Push the changes to GitHub ( 업로드 등록 )
$ git push origin master
참조 : https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
* git pull 과 fetch 차이
- fetch는 merge없이 다운로드
- pull은 merge하고 다운로드
http://silvernine.me/wp/?p=309
'Web Tech. > PHP, Web' 카테고리의 다른 글
checkbox로 <div>를 감추거나 보여주거나 (0) | 2017.11.24 |
---|---|
sqlmap - a penetration testing tool (0) | 2017.11.20 |
Chrome, Inspect (0) | 2017.04.05 |
Bootstrap 시작 하기 (0) | 2017.02.07 |
3. OctoberCMS , Creating Themes (0) | 2017.01.20 |