1.遠程倉庫的使用(github)
阿新 • • 發佈:2018-10-24
使用 learn 文件 one 項目 clone 顯示 file ima
1.登錄Github,新建一個倉庫(遠程倉庫)
(1)使用Github賬號密碼登錄
(2)點擊+旁邊的小三角,選擇new repository--輸入repository name--點擊create repository成功創建遠程倉庫
(3)完成後頁面顯示倉庫地址
2.在本地使用git clone把遠程倉庫的項目克隆下來
(1)在本地任意位置,右鍵--Git Bash Her--git clone--https://github.com/XX/Demo.git
3.在本地新建一個text文本,使用命令提交到Github遠程倉庫
(1)本地任意新建一個read.txt,任意輸入內容
(2)git add read.txt
git commit -m "XXX"(XX輸入內容是備註)
git remote add origin [email protected]:XXX/learnGitup.git
git push -u origin master
4.在遠程倉庫創建一個文件,在本地pull
(1)在遠程倉庫Github上--create new file ,創建一個Main.java文本
(2)在本地右鍵--Git Bash Here--git pull,即遠程倉庫新建的Main.java文本,在本地即可看到
5.刪除遠程倉庫的方法
(1)選中刪除的項目--Setting -- Delete this repository--在彈窗中輸入選中項目的名稱--點擊刪除
1.遠程倉庫的使用(github)