레이블이 Github인 게시물을 표시합니다. 모든 게시물 표시
레이블이 Github인 게시물을 표시합니다. 모든 게시물 표시

2014년 5월 14일 수요일

(작성중) Git Branch / Merge / Rebase, Git 사용에 대한 팁

http://dogfeet.github.io/articles/2011/a-successful-git-branching-model.html
http://dogfeet.github.io/articles/2011/git-merge.html 
http://dogfeet.github.io/articles/2012/git-merge-rebase.html
http://git-scm.com/book/ko/Git-%EB%B8%8C%EB%9E%9C%EC%B9%98-Rebase%ED%95%98%EA%B8%B0

Git Branch
 - 중앙집중식처럼 (다른사람의 코드베이스를 브랜치로 관리?)

 - master, develop 외 보조 브랜치 사용 (feature, release, hotfix, ...)
 - tag on master when merging release branch
 - merging with --no-ff (반드시 머지커밋 남기기 - 완전 합쳐져버리면 되돌리기 힘듬)

Git Rebase = Make concurrent commits seqeuential
Git Merge = Multiple parent?
 - 커밋 묶어서 merging (-no-commit --squash)

Don't do Rebase for commits of other developers


Git push
origin

hub

2014년 5월 12일 월요일

읽은 웹페이지 기록 20140511일

뭔가 내가 읽고 알게 된 내용들에 대해서 남겨놓고 싶은데 다 정리하기는 그렇고 해서 블로그 글로 한 번씩 키워드, 링크 목록을 정리해보기로 하였다. 말하자면 내 학습, 기억에 대한 인덱스같은 것이다.

HTML5 Graphics

drawingboard.js, Simple HTML5 Drawing / Sketch App https://github.com/Leimi/drawingboard.js
Paper.js = HTML5 Canvas = Bitmaphttps://github.com/paperjs/paper.js
Raphael.js = HTML5 Inline SVG = Vectorhttps://github.com/DmitryBaranovskiy/raphael/

JavaScript, CoffeeScript

Google Apps Script, Drive / Docs add-ons

QRCode

GitHub

Git + Hub = GitHub http://hub.github.com/

2014년 5월 7일 수요일

Atom 에디터 - Ubuntu 14.04에서 프로젝트 소스 빌드 및 설치

Atom 에디터?

소개 링크: http://atom.io/
특징: 오픈소스. Nodejs 기반. 애드온을 만들어서 붙일 수 있음. Markdown Preview 기능이 있음. Sublime Text나 Textmate와 비슷.
소스빌드가 아니라 ppa를 통해 설치하고싶다면 webupd8 팀에서 제공하는 저장소에서 설치(링크)할 수 있다.
PPA를 통한 설치 명령어:
 $ sudo add-apt-repository ppa:webupd8team/atom
 $ sudo apt-get update
 $ sudo apt-get install atom

주의점

  1. 64bit 시스템에서만 돌아간다.
  2. 설치 스크립트(script/grunt install)는 있는데 삭제 스크립트는 없다. 대신 Ubuntu/Debian을 위한 deb 패키지를 만들어주는 스크립트가 있다.

요약 (그냥 당장 설치해서 쓰는 것만을 바라는 사람을 위한 것)

  1. 여기(링크)를 따라서 Node.js와 NPM을 설정
  2. 설치: 터미널에서 명령 실행
    $ sudo apt-get install libgnome-keyring-dev
    $ sudo npm config set python /usr/bin/python2 -g
    $ sudo ln -sf /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so.0
    $ sudo apt-get remove gyp
    $ cd /tmp
    $ git clone https://github.com/atom/atom
    $ cd atom
    $ script/build
    $ script/grunt mkdeb
    $ sudo dpkg -i /tmp/atom-build/*.deb
    
  3. atom 실행
    터미널에서 명령 실행: $ atom

본론

준비과정

  1. Node.js, NPM 최신 버전을 설치한다. (설치 방법은 여기)
  2. 필요한 라이브러리를 설치 / 설정한다.
    명령 실행:
    $ sudo apt-get install libgnome-keyring-dev
    $ sudo npm config set python /usr/bin/python2 -g
    $ sudo ln -sf /lib/x86_64-linux-gnu/libudev.so.1 /lib/x86_64-linux-gnu/libudev.so.0
    $ sudo apt-get remove gyp
    
    각각은 차례대로
    • libgnome-keyring-dev 패키지 설치
    • npm에서 파이썬 버전을 python2로 설정
    • 의존하는 라이브러리 버전 문제로 링크 생성
    • gyp 명령이 빌드 과정에서 혼동이 일어나므로 삭제 (평상시에 필요하지 않음)
    를 수행하는 명령이다.

빌드 및 설치 과정

  1. Atom 프로젝트의 Github 저장소를 로컬에 복제한다.
    명령 실행:
    $ git clone https://github.com/atom/atom
  2. 복제된 Git 저장소로 들어가서 build script, deb 패키지 생성 스크립트를 차례대로 실행한다.
    명령 실행:
    $ cd atom
    $ script/build
    $ script/grunt mkdeb
    
    위 명령어를 실행하면 /tmp/atom-build/ 에 빌드된 프로그램 파일과 deb 패키지가 생성된다.
    deb 설치 패키지를 보관해두고 싶다면 파일관리자에서 /tmp/atom-build/ 디렉토리로 찾아들어 가거나 다음 명령어를 실행하여 deb 패키지를 홈 디렉토리로 복사한다.
    명령 실행: $ cp /tmp/atom-build/*.deb ~/
  3. deb package 설치
    명령 실행: $ sudo dpkg -i /tmp/atom-build/*.deb

참고사항

deb 패키지를 이용해서 설치했다면 삭제는 간단히
$ sudo apt-get remove atom
$ script/grunt install 로 설치하였다면 수동으로 삭제해야 한다.
(그냥 데비안 패키지 사용하는 게 낫다.)
$ script/grunt install을 통해 기본 설정으로 설치되는 디렉토리와 파일은
  • /usr/local/share/atom/ 디렉토리
  • /usr/local/bin/ 내의 apm, atom 실행파일(심볼릭 링크)
이다.
(관련 파일: 프로젝트 디렉토리의 build/Gruntfile.coffee, build/tasks/install-task.coffee)

참조한 글