git使用

[url]http://hi.baidu.com/i7521/blog/item/1223883dbae09b0ebba1674a.html[/url]
具体可简化:

ssh-keygen -t rsa -C "[email protected]"
将.ssh/id_rsa.pub拷贝到GitHub网站
#ssh [email protected]
如果配置正确,显示
ERROR: Hi xxx! You've successfully authenticated, but GitHub does not provide shell access
Connection to github.com closed.

# git config --global user.name "xx"
# git config --global user.email [email protected]

到项目目录下面:
git add .
git commit -m "your first information"
git remote add origin [email protected]:xxx/new-project.git
git push origin master

更新:
# git commit -a -m "update information"
# git push origin master

你可能感兴趣的:(RORs,Git,SSH,Gmail,Access,C)