學習使用github

2021-07-25 05:04:15 字數 384 閱讀 7048

首先註冊帳號、登入、建立專案

建立好之後看到有歌http和ssh選擇,我選擇ssh。

位址是[email protected]:firadio/filecount.git

然後在shell裡輸入git clone [email protected]:firadio/filecount.git .

之後就可以把檔案git add filecount.cpp進來了

然後執行git commit彈出的編輯框第一行寫上first commit.

接著git push -u origin master

發現沒有金鑰。就用xshell生成了乙個,把公鑰複製到gifhub匯入

然後把是要儲存到/root/.ssh/id_rsa

再試一次就可以了。

github 初步學習使用github

1 1 github簡明教程 1 2 對本地倉庫進行更新 1 3 超級全的github指令 2 常用命令 git add filename 新增檔案到本地index快取區 git add 新增所有檔案到index區 git commit m 將上述檔案新增到head區 git push origin...

github使用學習

提交 獲取文件過程 1.建立乙個資料夾 2.git init 初始化 生成了隱藏的.git資料夾 3.git add path of files 新增要管理的檔案,檔案需要在當前資料夾下,否則報錯 git add 新增當前目錄下所有內容 4.git commit am my commit 引數 am...

學習使用GitHub

git add 新增 該命令是將一些修改寫進本地記錄裡面,我們把本地記錄叫做索引庫 head緩衝區 git add a stages all include modified,delete and new git add stages new and modified git add u stage...