Author: tinin <tintindeng@gmail.com>Date: Tue Sep 16 13:24:54 2014 +0800
modified tin
commit 8175e287683f37e905cb9056838ac068c298418c
Author: tinin <tintindeng@gmail.com>Date: Tue Sep 16 13:14:26 2014 +0800first
8175e287683f37e905cb9056838ac068c298418c first
5.回到修改后的版本
先看下啊版本记录
$ git reflog
8175e28 HEAD@{0}: reset: moving to 8175e
5cd41c8 HEAD@{1}: commit: modified tin8175e28 HEAD@{3}: commit (initial): first$ git reset --hard 5cd41
又回来了
二、远程连接github
github地址
注册好帐号并登录
1.create一个仓库(小加号)
找到仓库的连接拷贝下来
2.同过git命令行clone仓库到本地
$ git clone https://github.com/tintindeng/androidexample.git
3.远程提交代码
生成密钥(用来提交代码安全认证)
$ ssh-keygen -t rsa -C 'tintindeng@gmail.com'
....The key's randomart image is:+--[ RSA 2048]----+| .o*+* || +.O B || + * * || . o + . || . . S || . . || E . . . || . . || |+-----------------+接下来到github上添加你生成的publickey
关联到远程仓库 和push到仓库
$ git remote add origin https://github.com/tintindeng/androidexample.git
$ git push origin master (输入你的用户名密码)
在github你的仓库下可以看到你提交的文件了
另外github提供了图像化界面客户端 首页就看到下载的button
可以down下来体验下