--- GA: G-7GF24SD6DM --- # Github使用筆記:Linux新建Git倉庫,完成上傳至Github作業。 ## 前言 筆記用,順便提供給後人參考。 我自己也可以參考😶 ----- > 此演示環境因特殊需求,以「root」權限進行作業 > 使用時並不限定su權限使用,請讀者自行審定應選擇之使用者。 ## Step1. 新建Git倉庫 ```shell= git init ``` ![image.png](https://hackmd.io/_uploads/rkDpHpb76.png) init新建倉庫 <br> ```shell= git status ``` ![image.png](https://hackmd.io/_uploads/BJXOIpWXT.png) 檢視該倉庫內狀態,會列出有追蹤、編輯、修改等等版控資訊。 <br> ```shell= git config user.name 您的使用者名稱 git config user.email 您的電子郵件 git config --local --list # 檢視此倉庫(Local)之Config設定,確定設定狀況 ``` ![image.png](https://hackmd.io/_uploads/HkQN-WfXT.png) <br> ```shell= git log # 檢視Git倉庫歷程記錄Log ``` ![image.png](https://hackmd.io/_uploads/BkLZMZzXa.png)