git 和 github 簡單使用
阿新 • • 發佈:2018-11-28
1 > --- https://github.com/ 地址在此
2> --- 先註冊,不贅述
3> --- 本人使用的是linux 系統,別的也沒管.....學習是為了解決自己的問題
4> --- 註冊好後,頭像框旁邊的 + 號 create a new repository
*一般建立好後 creating a new file 需要 new file 一個
5 > --- 關於金鑰
1 ssh -T [email protected]
2 ssh-keygen -t rsa -C " [email protected]"
6 > --- 點頭像 setting 然後 SSH keys 那一欄 cat 命令開啟金鑰 地址在主目錄 . ssh 裡面
cat id_rsa.pub
7> --- 以下在終端輸入 換成自己的內容
git config --global user.name "rzry" git config --global user.email "[email protected]"
8> --- 你就可以
git clone https://github.com/rzry/你的倉庫地址
9> ---
cd /home/rzry
ls
10 > --- 你就可以看到你的倉庫了
11 > --- 上傳 也很簡單
git add . git commit -m "first" git push -u origin master
恩 大功告成