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