1. cd /Users/mac/Desktop/demo
2., git init
3. git pull https://git.oschina.net/m2500289926/demo.git (git pull origin master --allow-unrelated-histories)
4. git add .
5. git commit -m "up"
6. git remote add origin https://git.oschina.net/m2500289926/demo.git
7. git push origin master///////git push -u origin master -f
8.git checkout index-swiper 切换分支
9、git checkout . 放弃本次修改
10、git branch 查看所有分支
11、git merge index-recommend 把index-recommend分支 合并到当前分支
git 生成秘钥
http://www.cnblogs.com/horanly/p/6604104.html