Dev/기타

[GitHub] gitHub에서 소스 가져와서 내 gitHub에 올리기.

마이스토리 2016. 6. 22. 15:13

    gitHub에서 소스 내려받기

    git clone  https://github.com/angular/quickstart  my-proj
    cd my-proj

    .git 디렉토리 삭제

    rm -rf .git  // non-Windows
    rd .git /S/Q // windows

    로컬 git 레포지토리 생성 및 commit

    git init
    git add .
    git commit -m "Initial commit"

    내 gitHub에 올리기(gitHub에 미리 repository생성되어 있어야 됨)

    git remote add origin <repo-address>
    git push -u origin master