gitinstruction in Linux
◑firstwe should configurethe public key && private keys
I.youshould install the git for your linux operating system:
sudoapt-get install git
ii.configureyour git configure files
gitconfig --global git.name "your name" //configure user,
gitconfig --global user.email "your email" //configureemailaddress,比如 zd@qq.com
iii.produceyour ssh key
ssh-keygen -t rsa -C "your_email@youremail.com"
hefile usually in ~/.ssh(if your root ,you can find it in/root/.ssh/)
iv.addpublic keys in Github
useevery content whose id_rsa.pub file paste SSH and GPG Keys
v.checkset the keys is successful
runssh -T git@github.com
if prompt‘You’ve successfully authenticated, but GitHub does not provideshell access’,is OK.
◑getthe repositories in github and push the file in local
ii.gitadd newfile
iii.gitcommit -m "introduction"
iv.gitpush