这几天弄了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

有不足的还望大祌指导。

 posted on 2015-04-28 00:38  苍穹小子  阅读(368)  评论(0)    收藏  举报