码迷,mamicode.com
首页 > 其他好文 > 详细

git hub 之旅

时间:2015-04-28 01:33:37      阅读:140      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!