★★★★GitHub 文件托管使用步驟簡單整理
一、準(zhǔn)備工作:
首先:到https://github.com下注冊(cè)賬號(hào):[email protected]/密碼
然后,到https://github.com/new創(chuàng)建倉庫myRepository
二、安裝github客戶端:
https://git-for-windows.github.io/
三、添加本地文件到遠(yuǎn)程服務(wù)器:
①git clone https://github.com/shengqianfeng/myRepository.git
②cd myRepository
③將需要托管的代碼和文件(如:test目錄)放進(jìn)myRepository
④git add . //將當(dāng)前文件目錄(myRepository)內(nèi)的全部內(nèi)容添加進(jìn)版本管理器
⑤git commit -m "本次提交的說明信息" //提交到本地的版本控制庫里
⑥git push -u origin master //將你本地的倉庫提交到你的github賬號(hào)里,此時(shí)會(huì)要求你輸入你的github的賬號(hào)和密碼
⑦查看瀏覽器:https://github.com/shengqianfeng/myRepository 發(fā)現(xiàn) test目錄已經(jīng)在上邊了。
四、刪除本地和遠(yuǎn)程文件:
① git rm text.txt
② git commit -m "delete txt"
③ git push
評(píng)論
圖片
表情
