Open Source/git / svn / bazaar

github에 내 사이트 만들기.

소혼 2012. 1. 17. 02:17
반응형
참 고: https://github.com/blog/272-github-pages

github 는 git repository 를 제공해주는 서비스입니다.
오픈소스 프로젝트를 만들때도 도움이 되지만,  이 서비스를 이용해 자신의 홈페이지를 만들수도 있습니다.

1) 일단, 가입하셔야합니다. (인터넷 참고)

2) {자기아이디}.github.com 라는 이름의 repository 를 만듭니다. (인터넷 참고)

잘 만들어졌는지 시키는데로 따라했습니다.
  mkdir bunhere.github.com
  cd bunhere.github.com
  git init
  touch README
  git add README
  git commit -m 'first commit'
  git remote add origin git@github.com:bunhere/bunhere.github.com.git
  git push -u origin master

 3) gh-pages라는 branch를 만듭니다.
  cd /path/to/repo-name
  git symbolic-ref HEAD refs/heads/gh-pages
  rm .git/index
  git clean -fdx
  echo "My GitHub Page" > index.html
  git add .
  git commit -a -m "First pages commit"
  git push origin gh-pages

4) 기다립니다.

생각보다 시간(10분)이 많이 걸립니다. 바로 뭔가를 확인하기엔 좋지 않은듯 합니다. 
반응형

'Open Source > git / svn / bazaar' 카테고리의 다른 글

[GIT] windows에서 invalid username (wincred)  (0) 2016.10.18
commit.template - default commit message  (2) 2012.07.12
resume in github  (2) 2012.02.15
svn과 proxy  (0) 2010.08.11
Git 사용법(Manual)  (1) 2010.01.10