한글주소API(KoreaAddressAPI)를 사용을 위해서도, 함께 개발하기 위해서 필요한 git 및 github 설정방법에 대해서 알아보겠습니다.
git clone을 하고, remote도 추가해주세요.
git clone https://github.com/skysign/KoreaAddressAPI.git # fork 한 자신의 git repo를 clone 해야 합니다!
cd KoreaAddressAPI
git remote add upstream https://github.com/skysign/KoreaAddressAPI.git # 병건님의 repo를 upstream으로 지정
$ git remote -v
origin https://github.com/seongilp/KoreaAddressAPI.git (fetch) -> 자신의 repo 주소가 나와야 합니다
origin https://github.com/seongilp/KoreaAddressAPI.git (push)
upstream https://github.com/skysign/KoreaAddressAPI.git (fetch) -> 병건님의 repo 주소가 나와야 합니다
upstream https://github.com/skysign/KoreaAddressAPI.git (push)
다른 분들이 변경한 소스가 upstream에 반영되면 내려받기 위한 작업이 필요합니다.
$ git fetch upstream
$ git merge upstream/master
$ git push origin master
git add FILENAME_TO_COMMIT
git commit -m "커밋 메시지"
// 커밋 메세지를 잘 작성해주세요.
// 이렇게 커밋 메세지를 작성하면, 영원히 고통받습니다. ㅎㅎ
// https://github.com/skysign/KoreaAddressAPI/commit/91eb26573cb0c5ff8e873d927dd5829d2c100ecd
git push origin master # origin은 repo, master는 branch 입니다.
github.com 에 로그인해서, 'create pull request'를 클릭합니다.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.