본문 바로가기

웹도구 및 Plugin/git

이미 만들어진 프로젝트 Git 올리기

1. Create new repository 

※ Clone URL은 Create new repository 생성 후 다음 페이지에서 나옵니다.

2. Git Bash Open

3. 프로젝트 저장 폴더로 이동

 $ cd "c:\WebSite"


4. 명령어를 입력합니다.

$ git init

$ git add .

$ git commit -m "first commit"  ※ $ git commit -m "{ comment }"

$ git remote add origin { github Clone URL } ※ Clone URL은 Create new repository 생성 후 다음 페이지에서 나옵니다.

$ git push origin master


5. git repository를 확인합니다.

'웹도구 및 Plugin > git' 카테고리의 다른 글

git error: update_ref failed for ref  (0) 2020.02.28
Git Bash를 이용한 branch 삭제  (0) 2018.10.24