一、上傳
1、進入file>>setting

2、搜索git
首先要下載并且安裝git,這一步請小伙伴們自己百度相關教程


3、登錄GitHub賬號
我這里已經登錄了一個,還沒登錄的小伙伴可以點擊右邊的“+”進行登錄,登錄可以直接使用賬號密碼,以可以在github上搞一個密鑰進行登錄

4、建立一個本地git倉庫(即專案名稱)
這個demo是我的專案地址,點擊,之后會檔案名稱變紅色,表示未上傳到github
![[外鏈圖片轉存失敗,源站可能有防盜鏈機制,建議將圖片保存下來直接上傳(img-hVUnriJi-1601627117358)(../../../../AppData/Roaming/Typora/typora-user-images/image-20201002115514632.png)]](https://img.uj5u.com/2020/10/04/123085041749285.png)
5、開始上傳到本地倉庫
![[外鏈圖片轉存失敗,源站可能有防盜鏈機制,建議將圖片保存下來直接上傳(img-k8ixwsOw-1601627117359)(C:\Users\HC\AppData\Roaming\Typora\typora-user-images\image-20201002115745015.png)]](https://img.uj5u.com/2020/10/04/123085041749286.png)
![[外鏈圖片轉存失敗,源站可能有防盜鏈機制,建議將圖片保存下來直接上傳(img-hojkkZoO-1601627117360)(C:\Users\HC\AppData\Roaming\Typora\typora-user-images\image-20201002115820725.png)]](https://img.uj5u.com/2020/10/04/123085041749287.png)
![[外鏈圖片轉存失敗,源站可能有防盜鏈機制,建議將圖片保存下來直接上傳(img-oNdpV0tn-1601627117361)(C:\Users\HC\AppData\Roaming\Typora\typora-user-images\image-20201002120103080.png)]](https://img.uj5u.com/2020/10/04/123085041749288.png)
繼續commit
![[外鏈圖片轉存失敗,源站可能有防盜鏈機制,建議將圖片保存下來直接上傳(img-JlKMXIan-1601627117362)(C:\Users\HC\AppData\Roaming\Typora\typora-user-images\image-20201002120141927.png)]](https://img.uj5u.com/2020/10/04/123085041749289.png)
左下角顯示專案成功部署,完成本地部署
![[外鏈圖片轉存失敗,源站可能有防盜鏈機制,建議將圖片保存下來直接上傳(img-GmiDq6Jd-1601627117362)(C:\Users\HC\AppData\Roaming\Typora\typora-user-images\image-20201002120248036.png)]](https://img.uj5u.com/2020/10/04/1230850417492810.png)
6、上傳到github
![[外鏈圖片轉存失敗,源站可能有防盜鏈機制,建議將圖片保存下來直接上傳(img-XDmjP81e-1601627117364)(C:\Users\HC\AppData\Roaming\Typora\typora-user-images\image-20201002120459438.png)]](https://img.uj5u.com/2020/10/04/1230850417492811.png)
![[外鏈圖片轉存失敗,源站可能有防盜鏈機制,建議將圖片保存下來直接上傳(img-zR9I8YYb-1601627117365)(C:\Users\HC\AppData\Roaming\Typora\typora-user-images\image-20201002120620432.png)]](https://img.uj5u.com/2020/10/04/1230850417492812.png)
分享成功
![[外鏈圖片轉存失敗,源站可能有防盜鏈機制,建議將圖片保存下來直接上傳(img-4fdLxwES-1601627117366)(C:\Users\HC\AppData\Roaming\Typora\typora-user-images\image-20201002114130493.png)]](https://img.uj5u.com/2020/10/04/1230850417492813.png)
![[外鏈圖片轉存失敗,源站可能有防盜鏈機制,建議將圖片保存下來直接上傳(img-RcRLJhYt-1601627117366)(C:\Users\HC\AppData\Roaming\Typora\typora-user-images\image-20201002114219913.png)]](https://img.uj5u.com/2020/10/04/1230850417492814.png)
![[外鏈圖片轉存失敗,源站可能有防盜鏈機制,建議將圖片保存下來直接上傳(img-AahMYnBy-1601627117368)(C:\Users\HC\AppData\Roaming\Typora\typora-user-images\image-20201002114237400.png)]](https://img.uj5u.com/2020/10/04/1230850417492815.png)
二、更新
1、點擊綠色的√
![[外鏈圖片轉存失敗,源站可能有防盜鏈機制,建議將圖片保存下來直接上傳(img-851WmWz0-1601627117368)(C:\Users\HC\AppData\Roaming\Typora\typora-user-images\image-20201002121126611.png)]](https://img.uj5u.com/2020/10/04/1230850417492816.png)
2、commit一下就可以了
![[外鏈圖片轉存失敗,源站可能有防盜鏈機制,建議將圖片保存下來直接上傳(img-iE7Xo2Gh-1601627117369)(C:\Users\HC\AppData\Roaming\Typora\typora-user-images\image-20201002121250531.png)]](https://img.uj5u.com/2020/10/04/1230850417492817.png)
右擊專案檔案夾,先pull一下,為以后多人開發的時候做好準備
![[外鏈圖片轉存失敗,源站可能有防盜鏈機制,建議將圖片保存下來直接上傳(img-NL0IJ4hl-1601627117370)(C:\Users\HC\AppData\Roaming\Typora\typora-user-images\image-20201002121435259.png)]](https://img.uj5u.com/2020/10/04/1230850417492818.png)
3、pull成功
![[外鏈圖片轉存失敗,源站可能有防盜鏈機制,建議將圖片保存下來直接上傳(img-uhaY02bz-1601627117371)(C:\Users\HC\AppData\Roaming\Typora\typora-user-images\image-20201002121531394.png)]](https://img.uj5u.com/2020/10/04/1230850417492819.png)
push一下
![[外鏈圖片轉存失敗,源站可能有防盜鏈機制,建議將圖片保存下來直接上傳(img-vu1tgCnN-1601627117372)(C:\Users\HC\AppData\Roaming\Typora\typora-user-images\image-20201002121619742.png)]](https://img.uj5u.com/2020/10/04/1230850417492820.png)
![[外鏈圖片轉存失敗,源站可能有防盜鏈機制,建議將圖片保存下來直接上傳(img-648oDJGg-1601627117372)(C:\Users\HC\AppData\Roaming\Typora\typora-user-images\image-20201002121649482.png)]](https://img.uj5u.com/2020/10/04/1230850417492821.png)
4、push成功
![[外鏈圖片轉存失敗,源站可能有防盜鏈機制,建議將圖片保存下來直接上傳(img-lCJFkL2p-1601627117373)(C:\Users\HC\AppData\Roaming\Typora\typora-user-images\image-20201002121712963.png)]](https://img.uj5u.com/2020/10/04/1230850417492822.png)
5、去github查看修改
![[外鏈圖片轉存失敗,源站可能有防盜鏈機制,建議將圖片保存下來直接上傳(img-QIKhlKRj-1601627117374)(../../../../AppData/Roaming/Typora/typora-user-images/image-20201002121833252.png)]](https://img.uj5u.com/2020/10/04/1230850417492823.png)
![[外鏈圖片轉存失敗,源站可能有防盜鏈機制,建議將圖片保存下來直接上傳(img-rO9rqMj9-1601627117375)(C:\Users\HC\AppData\Roaming\Typora\typora-user-images\image-20201002121848523.png)]](https://img.uj5u.com/2020/10/04/1230850417492824.png)
6、修改成功
![[外鏈圖片轉存失敗,源站可能有防盜鏈機制,建議將圖片保存下來直接上傳(img-OqnyFyAK-1601627117376)(C:\Users\HC\AppData\Roaming\Typora\typora-user-images\image-20201002121921546.png)]](https://img.uj5u.com/2020/10/04/1230850417492825.png)
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/155111.html
標籤:其他
下一篇:HTML的概述和基本語法
