Git總結筆記3-把本地倉庫推送到github
說明:此筆記在centos 7 上完成
1.配置公鑰
[[email protected] ~]# ssh-keygen -t rsa -C "[email protected]" [[email protected] ~]# cat .ssh/id_rsa.pub
註意:在本地用ssh-keygen生成密鑰對後,把公鑰添加到github上
2.安裝git服務
[[email protected] ~]# yum -y install git
3.配置基本環境參數
[[email protected]
4.創建本地倉庫目錄並初始化
[[email protected] ~]# mkdir kangvcar [[email protected] ~]# cd kangvcar/ [[email protected] kangvcar]# git init [[email protected]