티스토리 뷰

<기존에 작업중이던 프로젝트를 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해서 올렸다.






«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31