-
Notifications
You must be signed in to change notification settings - Fork 30
/
git.tex
executable file
·160 lines (119 loc) · 3.28 KB
/
git.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
\documentclass[11pt,twoside,a4paper]{report}
\linespread{1.2}
\title{Uvod u git}
\usepackage[pdftex]{color}
\usepackage[croatian]{babel}
\usepackage[utf8]{inputenc}
\usepackage[pdftex]{graphicx}
\usepackage{makeidx}
\usepackage{color}
\usepackage[pdfborder=1]{hyperref}
\addtolength{\hoffset}{-1cm}
\addtolength{\voffset}{-1cm}
\addtolength{\textwidth}{2cm}
\addtolength{\textheight}{1cm}
\pagestyle{empty}
\makeindex
\definecolor{orange}{rgb}{1,0.5,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\newcommand{\gitgraphics}[2]{%
\begin{tabular}{l}
\begin{minipage}[b]{120mm}%
\vspace*{5mm}%
\noindent
\includegraphics[width=#2]{#1}
\vspace*{5mm}%
\end{minipage}%
\end{tabular}
}
% Pomoćne naredbe za naslove + sadržaj:
\newcommand{\tocChapter}[1]{%
\chapter*{#1}
\addcontentsline{toc}{chapter}{#1}
}
\newcommand{\tocSection}[1]{%
\section*{#1}
\addcontentsline{toc}{section}{#1}
}
\newcommand{\tocSubSection}[1]{%
\subsection*{#1}
\addcontentsline{toc}{subsection}{#1}
}
% ----------------------------------------------------------------------------------------------------
\newcommand{\gitoutput}[1]{%
\begin{tabular}{|l}
\begin{minipage}[b]{140mm}%
\vspace*{5mm}%
\noindent
\texttt{#1}
\vspace*{5mm}%
\end{minipage}%
\end{tabular}
}
\newcommand{\gitoutputcommand}[1]{%
\gitoutput{\color{blue}{#1}}%
}
\newcommand{\TODO}{\textcolor{red}{\textbf{TODO:}}}
%\setlength{\parindent}{0.25in}
\setlength{\parskip}{3mm}
\begin{document}
\begin{titlepage}
\vspace*{1cm}
\begin{center}
\Huge \textbf{U V O D \ \ U \ \ G I T}
\end{center}
\begin{center}
Tomo Krajina
\end{center}
\vspace*{0.5cm}
Od\dots
\input{graphs/linearni_model}
\dots{}preko\dots
\input{graphs/linearni_model_2}
\dots{}pa do\dots
\input{graphs/primjer_s_granama_i_spajanjima}
\dots{}a i dalje.
\vspace*{1cm}
\begin{center}
\emph{Commit}
\input{current_commit}
\end{center}
\end{titlepage}
\pagestyle{empty}
\vspace*{4cm}
\begin{center}
\includegraphics[width=2cm]{images/cc-88x31.png}
\end{center}
\begin{itemize}
\item Izdano pod "Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)" licencom. Detalji na: \\ \url{http://creativecommons.org/licenses/by-sa/3.0/deed.en_US}
\item Ovu knjigu \textbf{možete kopirati}, fotokopirati, dijeliti prijateljima i kolegama i koristiti za učenje,
\item Ovu knjigu \textbf{smijete mijenjati}, ali mora biti \textbf{jasno naznačeno koje dijelove knjige je tko napisao},
\item Izmijenjenu knjigu i dalje možete kopirati i dijeliti, ali \textbf{izmijenjena verzija mora zadržati istu ili kompatibilnu licencu}.
\item Izmijenjena knjiga \textbf{mora sadržavati link na originalnu lokaciju njenog \LaTeX{} koda}: \\ \url{https://github.com/tkrajina/uvod-u-git}
\end{itemize}
\pagestyle{plain}
\setcounter{page}{1}
\tableofcontents
\include{uvod}
\include{verzioniranje-koda}
\include{git-init}
\include{git-commit}
\include{git-branch}
\include{git-merge}
\include{git-tag}
\include{ispod-haube}
\include{git-log}
\include{git-remote}
% TODO
%\include{git-subtree}
\include{git-gc}
\include{git-bisect}
\include{prikaz-povijesti}
\include{cesta-pitanja}
\include{manje-koristene-naredbe}
\include{dodaci}
\include{terminologija}
\include{zahvale}
%\include{}
\printindex
\end{document}