1.8.3 Adding (add) files and directories
Git is also very simple to add files and directories. First, add the files and directories to the Git system management, and then submit the changes.
For example, add an a.jsp file in the G:\gitJava directory, the content of this file can be written at will, and add a WEB-INF folder in this directory, and add a web.xml file in this folder. Next, we plan to add a.jsp files and folders to Git management. The steps are as follows.
(1) Select the a.jsp and WEB-INF folders at the same time, right-click, and select the "TortoiseGit" → "Add..." menu item, the system pops up the dialog box shown in Figure 1.68.
Figure 1.68 Adding files and directories
(2) Click the "OK" button in the dialog box shown in Figure 1.68, and the file is added to Git management. After the addition is complete, TortoiseGit displays the prompt interface shown in Figure 1.69.
Figure 1.69 Added successfully
Tip: The adding operation is equivalent to executing git add, so the above steps are equivalent to executing the git add a.jsp WEB-INF command in the G:\gitJava directory.
This article is adapted from the Crazy Java Forum: http://www.crazyit.org/forum.php
Spring Cloud teaching video: https://my.oschina.net/JavaLaw/blog/1552993
JD.com purchase address: https://item.jd.com/12256011.html
Workflow Activiti teaching video: https://my.oschina.net/JavaLaw/blog/1577577
Activiti6 purchase address: https://item.jd.com/12246565.html