기본 콘텐츠로 건너뛰기

글

라벨이 remote인 게시물 표시

[git] fork 해온 저장소를 최신 상태로 유지하기

Go 관련 번역 작업을 할 일이 있어서 했던 일들을 기록해둔다. 이슈에 내가 할 작업 분량을 공지하고 (다른 사람이 두번 삽질 안하게) 바로 fork 해서 내 저장소로 옮겨놓고 수정하고 pull request 까지 끝낸 뒤 원본에서 merge까지 끝났다. 그 다음은? 내가 fork 한 저장소의 작업과 별개로 원본의 작업은 진행되고 있고 아마 내 저장소의 것들은 상대적으로 구버전일 것이다. 원본에서 pull로 땡겨와서 merge 하기 위해 remote 를 먼저 등록해두자. $ git remote add upstream git@github.com:golanger/go-tour-translator.git 확인해본다. $ git remote origin upstream origin 과 새로 추가한 upstream. 두개를 확인할 수 있다. 그러면 upstream으로부터 pull 해보자. $ git pull upstream From github.com:golanger/go-tour-translator  * [new branch]      master     -> upstream/master You asked to pull from the remote 'upstream', but did not specify a branch. Because this is not the default configured remote for your current branch, you must specify a branch on the command line. 그냥 pull 하니까 오류를 뱉는다. 어떤 브랜치인지 지정 안했다는 얘기지뭐. 디폴트로 master를 해줬으면 좋겠지만 확실한게 좋다. upstream에서 master를 가져오도록 해보자. $ git pull upstream master From github.com:go...

cloud9ide remote access tip

웹브라우저만 있으면 파일 업로드까지 가능한 막강 웹IDE인 cloud9ide 가 드디어 node 0.8.x 를 지원한다. 하지만 engine.io 탑재와 함께 내부기작이 바뀌었는지 외부에서 사용하기 위해 -l 옵션을 줘서 0.0.0.0 을 지정하면 클라이언트쪽 자바스크립트에서도 0.0.0.0을 참조하는 구조로 바뀌었다. 그래서 로컬로만 사용가능하고 외부에서 사용시 클라이언트쪽 통신이 끊어질 수 밖에 없는데 이래서야 원격 협업툴이 되지 않지. 그렇다고 직접 공인 IP를 찌르면 EADDRNOTAVAIL 오류가 난다. $ node cloud9/server.js -w ~/workspace -p 8123 -l 123.123.123.123 path.existsSync is now called `fs.existsSync`. connect plugin start events.js:66         throw arguments[1]; // Unhandled 'error' event                        ^ Error: listen EADDRNOTAVAIL     at errnoException (net.js:768:11)     at HTTPServer.Server._listen2 (net.js:891:19)     at listen (net.js:935:10)     at Server.listen (net.js:992:9)     at dns.js:71:18     at process.startup.processNextTick.process._tickCallback (node.js:244:9) 엄청 오랫동안 이 문제로 헤맸는데 결국 클라이언트는 접속할 도...