首页 > 其他 > 详细

git hub 之旅

时间:2015-04-28 01:33:18      阅读:223      评论:0      收藏:0      [点我收藏+]

这几天弄了git hub 虽然还没有比较好的程序在上面~~~~~

先记录下。。

0x00

generating ssh keys:

ssh-keygen -t rsa -C "name@gmail.com"

//ssh-add ~/.ssh/id_ras (if apear:Agent admitted failure to sign using the key. Permission denied (publickey))

cat ~/.ssh/id_ras.pub

copy that id_ras.pub and then add it to the github personal page or git.oschina.net

test some like below

welkin@welkin:/home/online_chat$ ssh -T git@git.oschina.net
Welcome to Git@OSC, welkin594!

or like this.

welkin@welkin:/home/online_chat$ ssh -T git@github.com
Hi welkin594! You‘ve successfully authenticated, but GitHub does not provide shell access.

and then start the git on local

git init
git pull git@git.oschina.net:welkin594/example.git
git add file(or git add . //put the all file to the commit)
git commit -m "message why you commit"
git push

if you want to remove some folder ..you can use below:

git rm --cache filename (or dir/filename)

git commit  -m "delete"

git push origin branch

有不足的还望大祌指导。

git hub 之旅

原文:http://www.cnblogs.com/welkin/p/4461873.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!