提交檔案
我們將新增一個新檔案,並將其註冊在我們剛建立的儲存庫中。
使用下列文本內容在該目錄中建立一個名為sample.txt
的檔案。
Anyone can learn Git with this tutorial and Backlog
開啟「tutorial」目錄,並在空白處右擊。
從右鍵單擊選單中,單擊「Git Commit -> to ‘main’」。
當下面螢幕顯示時,確保要勾選「Changes made」下的「sample.txt」。然後在訊息方塊中輸入提交訊息 (例如,「first commit」),並單擊「Commit」。

當顯示下面進度條螢幕時,確保一切正常,然後單擊「Close」來完成。

最後,從右鍵單擊選單中單擊「TortoiseGit」 > 「Show log」。我們新增的提交現在將列在歷史紀錄下。如果是這樣,您已經成功提交了您的第一個檔案!

接下來,您已準備好與您的團隊共享儲存庫。