diff --git a/.gitignore b/.gitignore
index 70bfceac2cfdcf7123581062913923cea3df44a1..b4161d80e502c256f02d457b82e8dded6b351566 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,3 +13,5 @@ downloads/*
 *.html
 *.orig
 apostila-git.Rproj
+/apostila_git.toc
+/cap05.md
diff --git a/apostila_git.tex b/apostila_git.tex
new file mode 100644
index 0000000000000000000000000000000000000000..99b616b8f7b8ab440471df67a1462d4e3d9f77e9
--- /dev/null
+++ b/apostila_git.tex
@@ -0,0 +1,216 @@
+\documentclass[
+  a5paper,
+  pagesize,
+  9pt,
+  % bibtotoc,
+  pointlessnumbers,
+  normalheadings,
+  % DIV=9,
+  twoside=false
+]{book}
+
+\usepackage[brazil]{babel}
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+
+\usepackage[sc]{mathpazo}
+% \usepackage{palatino}
+% \linespread{1.05} 
+\usepackage[scaled=0.85]{beramono}
+
+%-----------------------------------------------------------------------
+
+\usepackage{amssymb, amsmath}
+\usepackage{ifxetex, ifluatex}
+
+\usepackage{fixltx2e} % provides \textsubscript
+\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
+  \usepackage[T1]{fontenc}
+  \usepackage[utf8]{inputenc}
+\else % if luatex or xelatex
+  \ifxetex
+    \usepackage{mathspec}
+    \usepackage{xltxtra,xunicode}
+  \else
+    \usepackage{fontspec}
+  \fi
+  \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
+  \newcommand{\euro}{€}
+\fi
+
+% use upquote if available, for straight quotes in verbatim environments
+\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
+% use microtype if available
+\IfFileExists{microtype.sty}{%
+\usepackage{microtype}
+\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
+}{}
+
+%-----------------------------------------------------------------------
+% knitr.
+
+\usepackage{color}
+\usepackage{fancyvrb}
+\newcommand{\VerbBar}{|}
+\newcommand{\VERB}{\Verb[commandchars=\\\{\}]}
+\DefineVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\{\}}
+% Add ',fontsize=\small' for more characters per line
+\usepackage{framed}
+\definecolor{shadecolor}{RGB}{248,248,248}
+\newenvironment{Shaded}{\begin{snugshade}}{\end{snugshade}}
+\newcommand{\KeywordTok}[1]{\textcolor[rgb]{0.13,0.29,0.53}{\textbf{{#1}}}}
+\newcommand{\DataTypeTok}[1]{\textcolor[rgb]{0.13,0.29,0.53}{{#1}}}
+\newcommand{\DecValTok}[1]{\textcolor[rgb]{0.00,0.00,0.81}{{#1}}}
+\newcommand{\BaseNTok}[1]{\textcolor[rgb]{0.00,0.00,0.81}{{#1}}}
+\newcommand{\FloatTok}[1]{\textcolor[rgb]{0.00,0.00,0.81}{{#1}}}
+\newcommand{\CharTok}[1]{\textcolor[rgb]{0.31,0.60,0.02}{{#1}}}
+\newcommand{\StringTok}[1]{\textcolor[rgb]{0.31,0.60,0.02}{{#1}}}
+\newcommand{\CommentTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{\textit{{#1}}}}
+\newcommand{\OtherTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{{#1}}}
+\newcommand{\AlertTok}[1]{\textcolor[rgb]{0.94,0.16,0.16}{{#1}}}
+\newcommand{\FunctionTok}[1]{\textcolor[rgb]{0.00,0.00,0.00}{{#1}}}
+\newcommand{\RegionMarkerTok}[1]{{#1}}
+\newcommand{\ErrorTok}[1]{\textbf{{#1}}}
+\newcommand{\NormalTok}[1]{{#1}}
+
+%-----------------------------------------------------------------------
+
+\usepackage{graphicx}
+\makeatletter
+\def\maxwidth{
+  \ifdim\Gin@nat@width>\linewidth\linewidth
+  \else
+  \Gin@nat@width\fi}
+\def\maxheight{
+  \ifdim\Gin@nat@height>\textheight\textheight
+  \else
+  \Gin@nat@height\fi}
+\makeatother
+% Scale images if necessary, so that they will not overflow the page
+% margins by default, and it is still possible to overwrite the defaults
+% using explicit options in \includegraphics[width, height, ...]{}
+\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
+
+\ifxetex
+  \usepackage[setpagesize=false, % page size defined by xetex
+              unicode=false, % unicode breaks when used with xetex
+              xetex]{hyperref}
+\else
+  \usepackage[unicode=true]{hyperref}
+\fi
+
+\hypersetup{breaklinks=true,
+            bookmarks=true,
+            pdfauthor={},
+            pdftitle={},
+            colorlinks=true,
+            citecolor=blue,
+            urlcolor=blue,
+            linkcolor=magenta,
+            pdfborder={0 0 0}}
+\urlstyle{same}  % don't use monospace font for urls
+
+\setlength{\parindent}{0pt}
+\setlength{\parskip}{6pt plus 2pt minus 1pt}
+\setlength{\emergencystretch}{3em}  % prevent overfull lines
+
+\setcounter{secnumdepth}{5}
+
+%%% Use protect on footnotes to avoid problems with footnotes in titles
+\let\rmarkdownfootnote\footnote%
+\def\footnote{\protect\rmarkdownfootnote}
+
+%%% Change title format to be more compact
+\usepackage{titling}
+
+% Create subtitle command for use in maketitle
+\newcommand{\subtitle}[1]{
+  \posttitle{
+    \begin{center}\large#1\end{center}
+    }
+}
+
+\setlength{\droptitle}{-2em}
+
+\title{Apostila Git}
+\pretitle{\vspace{\droptitle}}
+\posttitle{}
+
+\author{PET Estatística UFPR}
+\preauthor{}\postauthor{}
+
+\date{2015}
+\predate{}\postdate{}
+
+\usepackage{wrapfig}
+
+%-----------------------------------------------------------------------
+
+\begin{document}
+
+% \maketitle
+
+%-----------------------------------------------------------------------
+% Capa.
+
+\begin{titlepage}
+  \centering{{\fontsize{40}{48}\selectfont \thetitle}}\\
+ 
+  \vspace{10mm}
+  \centering{\Large{\theauthor}}\\
+  \vspace{\fill} \centering \large{\thedate}
+\end{titlepage}
+
+%-----------------------------------------------------------------------
+% Dedicatórias.
+
+\newpage{}
+\thispagestyle{empty}
+\vspace*{2cm}
+
+\begin{center}
+  \Large{
+    \parbox{10cm}{
+      \begin{raggedright}
+        {\Large 
+          \textit{Não é a vontade de vencer que ganha o jogo, e sim a
+            vontade de se preparar para vencê-lo.}
+        }
+	
+        \vspace{.5cm}\hfill{---Paul ``Bear'' Bryant}
+      \end{raggedright}
+    }
+  }
+\end{center}
+
+\newpage
+
+%-----------------------------------------------------------------------
+% Agradecimentos.
+
+%-----------------------------------------------------------------------
+% Tabela de conteúdo.
+
+{
+\hypersetup{linkcolor=black}
+\setcounter{tocdepth}{2}
+\tableofcontents
+}
+
+%-----------------------------------------------------------------------
+% Capítulos.
+
+% \input{cap01.tex}
+% \input{cap02.tex}
+% \input{cap03.tex}
+% \input{cap04.tex}
+% \chapter{Serviços Web para Projetos Git}
+% \input{cap05.tex}
+% \input{cap06.tex}
+% \input{cap07.tex}
+% \input{cap08.tex}
+% \input{cap09.tex}
+
+\end{document}
+
+%-----------------------------------------------------------------------
\ No newline at end of file