这几天弄了git hub 虽然还没有比较好的程序在上面~~~~~
先记录下。。
0x00
generating ssh keys:
ssh-keygen -t rsa -C "[email protected]" //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
[email protected]:/home/online_chat$ ssh -T [email protected] Welcome to [email protected], welkin594! or like this. [email protected]:/home/online_chat$ ssh -T [email protected]Hi welkin594! You‘ve successfully authenticated, but GitHub does not provide shell access.
and then start the git on local
git init git pull [email protected]:welkin594/example.gitgit 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
有不足的还望大祌指导。
时间: 2024-12-28 06:55:06