fixed svn specific stuff
[TortoiseGit.git] / doc / source / en / TortoiseGit / tsvn_dug / dug_add.xml
blob05d31ed2bb6d3c1362f97ad79dc48722d12724a7
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <!DOCTYPE sect1 SYSTEM "../../../dtd/dblite.dtd">\r
3 <sect1 id="tsvn-dug-add">\r
4         <title>Adding New Files And Directories</title>\r
5         <indexterm>\r
6                 <primary>add</primary>\r
7         </indexterm>\r
8         <indexterm>\r
9                 <primary>version new files</primary>\r
10         </indexterm>\r
11         <?dbhh topicname="HIDD_ADD"?>\r
12         <para>\r
13                 <figure id="tsvn-dug-adding-dia-1">\r
14                         <title>Explorer context menu for unversioned files</title>\r
15                         <graphic fileref="../images/ContextMenuFileNoControl.png"/>\r
16                 </figure>\r
17                 If you created new files and/or directories during\r
18                 your development process then you need to add them\r
19                 to source control too. Select the file(s) and/or directory\r
20                 and use\r
21                 <menuchoice>\r
22                         <guimenu>TortoiseGit</guimenu>\r
23                         <guimenuitem>Add</guimenuitem>\r
24                 </menuchoice>.\r
25         </para>\r
26         <para>\r
27                 After you added the files/directories to source control\r
28                 the file appears with a <literal>added</literal> icon overlay which means you\r
29                 first have to commit your working tree to make those\r
30                 files/directories available to other developers.\r
31                 Adding a file/directory does <emphasis>not</emphasis> affect\r
32                 the repository!\r
33         </para>\r
34         <tip>\r
35                 <title>Many Adds</title>\r
36                 <para>\r
37                         You can also use the Add command on already versioned\r
38                         folders. In that case, the add dialog will show you all\r
39                         unversioned files inside that versioned folder.\r
40                         This helps if you have many new files and need to add\r
41                         them all at once.\r
42                 </para>\r
43         </tip>\r
44 <!--\r
45         <para>\r
46                 To add files from outside your working tree you can use\r
47                 the drag-and-drop handler:\r
48                 <orderedlist>\r
49                         <listitem>\r
50                                 <para>\r
51                                         select the files you want to add\r
52                                 </para>\r
53                         </listitem>\r
54                         <listitem>\r
55                                 <para>\r
56                                         <action>right-drag</action> them\r
57                                         to the new location inside the working tree\r
58                                 </para>\r
59                         </listitem>\r
60                         <listitem>\r
61                                 <para>\r
62                                         release the right mouse button\r
63                                 </para>\r
64                         </listitem>\r
65                         <listitem>\r
66                                 <para>\r
67                                         select\r
68                                         <menuchoice>\r
69                                                 <guimenu>Context Menu</guimenu>\r
70                                                 <guimenuitem>Git Add files to this WT</guimenuitem>\r
71                                         </menuchoice>.\r
72                                         The files will then be copied to the working tree and\r
73                                         added to version control.\r
74                                 </para>\r
75                         </listitem>\r
76                 </orderedlist>\r
77         </para>\r
78         <para>\r
79                 You can also add files within a working copy simply by left-dragging and\r
80                 dropping them onto the commit dialog.\r
81         </para>\r
82 -->\r
83         <para>\r
84                 If you add a file or folder by mistake, you can undo the addition\r
85                 before you commit using\r
86                 <menuchoice>\r
87                         <guimenu>TortoiseGit</guimenu>\r
88                         <guimenuitem>Delete (keep local)...</guimenuitem>\r
89                 </menuchoice>.\r
90         </para>\r
91 </sect1>\r