1. 在网页上新建repository
2. git clone http://github.com/FannieHF/requireJS
3. cd requireJS //进入到这个directory
4. git add .
5. git commit -m "Add existing file"
6. git config --global user.email "fanniehf@gmail.com"
7. git config --global user.name FannieHF
8. git commit -m "Add existing file"
9. git push -u origin master(branch-name)
10. 输入用户名和密码
转载于:https://blog.51cto.com/fannyhong/1883706