티스토리 뷰
<기존에 작업중이던 프로젝트를 git repository에 올릴때>
해당 프로젝트 경로 터미널에서)
git init
git add .
git commit -m "commit message"
git remote add origin <repository 주소>
git push origin master
<repository 주소>
그 후 git login 창이 뜨면 로그인 하면 된다.
+) 내가 올리던 도중에 커밋은 되었는데, push 하던도중 에러가 발생.
자세히는 모르겠는데, 윈도우 관련 에러인것 같다.
fatal: HttpRequestException encountered.
An error occurred while sending the request.
결국
git push -f origin master
로 강제로 push해서 올렸다.
'log > 개발일기' 카테고리의 다른 글
git clone시 submodule 추가하기 (0) | 2018.04.20 |
---|---|
[intellij] 프로젝트 빌드 오류시, 빌드가 안될때. (0) | 2018.04.11 |
[jpa] Enum type 데이터가 숫자로 저장될때. (0) | 2018.03.28 |
[Git] 브런치와 마스터, 작업흐름 (0) | 2018.03.06 |
[Git] smart commit with JIRA (0) | 2018.02.21 |