git入门

1.关于git的书籍,英文版http://git-scm.com/book 中文版http://git-scm.com/book/zh/%E8%B5%B7%E6%AD%A5 还有一个不错的学习地址https://www.atlassian.com/git/

2.搭建远程gi,http://www.cnblogs.com/xiaoya901109/archive/2012/08/03/2620664.html

3.在github上申请git托管服务:http://git-scm.com/book/zh/%E6%9C%8D%E5%8A%A1%E5%99%A8%E4%B8%8A%E7%9A%84-Git-Git-%E6%89%98%E7%AE%A1%E6%9C%8D%E5%8A%A1

第3步遇到的问题:

1.error: failed to push some refs to 'git@github.com:hequn8128/acm.git'

原因:github上git操作的流程是在github上创建repository,然后本地git clone下来,最后修改本地repository再更新。

2.error: The requested URL returned error: 403 Forbidden while accessing https://github.com/hequn8128/acm.git/info/refs

解决办法:http://stackoverflow.com/questions/7438313/pushing-to-git-returning-error-code-403-fatal-http-request-failed

4.在bitbucket申请私有的代码托管。

5.关于回退到指定版本。

   1)$ git log    查看想回到版本的版本号

   2)$ git reset --hard f19398dbad098279d2875e25da8aa15d1ee9c4bd

 ================

20140701更新

私有仓库:bitbucket

windows连接bitbucket:http://faisonz.com/blog/github-for-windows-and-bitbucket/

 

posted on 2013-12-31 18:37  hequn8128  阅读(180)  评论(0)    收藏  举报

导航