Back

使用github 建立一个代码库的步骤:

发布时间: 2011-11-28 07:29:00

建立github账户很久了,但是用的不多。
最近希望把1,2个 项目放上去。 所以把步骤放在这里。

我的项目名叫 checkbox_across_pagination。  (用来管理多页选择的一个js组件)

1. cd checkbox_across_pagination

2. git init .
  git add
  git commit -m "initial version"...
  git add user.name "oo"
  git add user.email "[email protected]"
等等常规操作。

3. 加上github的用户名和token. 这个很关键
  git config --global github.user sg552
  git config --global github.token ec05ac68ec63307fff6ed5ac7ea5bee1
  其中用户名和 token 都可以在你登录后看到。(account settings里面)

4. 进入到: https://github.com/repositories/new (这个URL似乎比较难找?我直接列出来了) 建立个repo,名字叫就  checkbox_across_pagination 

5. git remote add origin   [email protected]:sg552/checkbox_across_pagination.git
  git push -u origin master

欧了。 详细见:
http://help.github.com/create-a-repo/

Back