sudo apt-get install git
sudo apt-get install ssh
export SSH_AUTH_SOCK=0
eval `ssh-agent -s`
ssh-keygen -t rsa
ssh-add ~/.ssh/id_rsa
ssh-add -l
cat ~/.ssh/id_rsa.pub
go to github and add public key
ssh -vT git@github.com
"Hi XXX! You've successfully authenticated, but GitHub does notprovide shell access"
git clone git@github.com:xxx/xxxx.git
cd xxxx/
git add xxxx.py
git add xxxx.*
git remote -v
git remote remove origin
git remote add origin git@github.com:xxx/xxxx.git
git push --set-upstream origin master
git branch
git push
No comments:
Post a Comment