-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadd.tex
82 lines (54 loc) · 1.72 KB
/
add.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
% This is part of the ``Git First Step''.
% Copyright 2014, 2020 Yoshida Shin.
% See the file slide.tex for copying conditions.
\begin{frame}[t]{add}{使ってみる}
cached にファイル、ディレクトリを追加する
\vspace{4ex}
\onslide*<1>{
workspace を更新
\vspace{2ex}
\$ touch a b c
}
\onslide*<2>{
workspace を cached に反映
\vspace{2ex}
\$ git add a b
}
\end{frame}
\begin{frame}[t]{中で起きている事}{使ってみる}
\begin{columns}
\begin{narrowcolumn}
\begin{block}{workspace}
\onslide<3->{a b c}
\end{block}
\begin{block}{cached (index)}
\onslide<5->{a b}
\end{block}
\end{narrowcolumn}
\begin{halfcolumn}
\begin{repository}{repository}
\end{repository}
\end{halfcolumn}
\end{columns}
\vspace{2ex}
\onslide*<2-3>{
\$ touch a b c
\vspace{2ex}
.git ディレクトリは触っていないので、workspace のみ変更
}
\onslide*<4-5>{
\$ git add a b
\vspace{2ex}
\onslide*<-5>{workspace から cached へファイル、ディレクトリをコピー}
}
\end{frame}
\begin{frame}[t]{git add コマンド補足}{使ってみる}
\begin{itemize}
\item git add \textit{path1} [\textit{path2} [\textit{path3} [...]]]\footnote{[ ] でくくってあるパラメータは省略可能という意味}
で複数の path を一度に workspace へコピー可能
\vspace{2ex}
\item path が ディレクトリの場合、そのディレクトリ以下のファイルを再起的に git add する
\vspace{2ex}
\item workspace のトップディレクトリで git add . と行うと全ファイルを git add できる
\end{itemize}
\end{frame}