Skip to main content
  1. Learn center
  2. Software Development
  3. Guides
  4. Git tutorial
  5. 如何使用 Git
  6. 如何在 Windows 中使用 Git
  7. 提交檔案
GuidesSoftware DevelopmentBacklog
Git

Project and code management together.

提交檔案

我們將新增一個新檔案,並將其註冊在我們剛建立的儲存庫中。

使用下列文本內容在該目錄中建立一個名為sample.txt的檔案。

Anyone can learn Git with this tutorial and Backlog

開啟「tutorial」目錄,並在空白處右擊。

從右鍵單擊選單中,單擊「Git Commit -> to ‘main’」。

當下面螢幕顯示時,確保要勾選「Changes made」下的「sample.txt」。然後在訊息方塊中輸入提交訊息 (例如,「first commit」),並單擊「Commit」。

Enter a message in the commit message field, then click the OK button.

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

If it says Success, the attempt was successful.

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

The recent commit is added to the history

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

Subscribe to our newsletter

Learn with Nulab to bring your best ideas to life