posted by REDFORCE 2018. 5. 16. 23:37

어지간하면 깃-클라이언트를 이용하기 때문에 쓸일이 없었으나

이따금씩 에러때문에 커맨드를 써야 할 경우가 있었다.


덕분에 Git command를 쓰려고 했는데, 명령어 자체를 까먹어서 적어둔다.


github에 repository를 먼저 생성

(remote repo에는 .gitignore와 LICENSE가 commit되어있는 상태)


git init

git remote add origin https://github.com/ssaemo/asyncio-irc-client.git

git pull origin master # origin으로부터 local master로 가져옴

git add .

git commit -m "first commit"

git push origin master # origin으로 local master commit을 push