git instruction in Linux

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 "[email protected]"

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 [email protected]

if prompt‘You’ve successfully authenticated, but GitHub does not provideshell access’,is OK.

getthe repositories in github and push the file in local

I.gitclone tps://*.git

ii.gitadd newfile

iii.gitcommit -m "introduction"

iv.gitpush



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章