7 \frametitle{Table of contents
}
11 \section{Introduction
}
13 \frametitle{Who am I?
}
16 \item 4th year bachelor AI
17 \item \url{https://github.com/dopefishh/gitflashtalk
}
18 \item SHA of the commit of this presentation:
24 \frametitle{Where did GIT come from?
}
25 \begin{block
}{History
}
26 \begin{columns
} \column{0.4\linewidth}
28 \item Pronounce:
\textipa{[g\'
\i t
]}
33 \column{0.5\linewidth}
36 \includegraphics[width=
0.5\linewidth]{1.png
}
37 \caption{Linus Torvalds
}
42 \begin{block
}{What is GIT?
}
56 \item Support for non linear development
57 \item Intermediate stage between committing and pushing
64 \item Intermediate stage between committing and pushing
70 \subsection{Installation
}
71 \begin{frame
}[fragile
]
72 \begin{block
}{{\Large\Smiley\Smiley} Linux
}
73 Depending on the distribution you may have to do:\\
74 \texttt{\# apt-get install git
}\\
75 \texttt{\# pacman -S git
}\\
76 \texttt{\# yum install git
}\\
77 \texttt{\# emerge --ask dev-vcs/git
}\\
81 \begin{block
}{{\Large\Frowny\Smiley} Mac
}
82 Install via XCode tools. Just run
\lstinline{\$ git
} and
83 when GIT is not installed it will prompt you with instructions.
86 \begin{block
}{{\Large\Frowny\Frowny} Windows
}
87 Downoad the binary from
\url{http://git-scm.com/download/win
} and install.
92 \subsection{Getting started
}
93 \begin{frame
}[fragile
]
94 \frametitle{Getting started
}
95 \begin{block
}{Check GIT version in (GIT) bash
}
97 frobnicator@frobmachine:~\$ git --version
102 \begin{block
}{Create a repository
}
104 frobnicator@frobmachine:~/projects\$ git init myfirstproject
105 Initialized empty Git repository in /home/frobnicator/projects/myfirstproject/.git/
107 frobnicator@frobmachine:~/projects\$ ls -
1 myfirstproject/.git
120 \subsection{Four (five) stages
}
122 \frametitle{Four (five) stages
}
133 \frametitle{Workflow
}
136 \includegraphics[scale=
0.4]{2.png
}
137 \caption{Git workflow
}
141 \begin{frame
}[fragile
]
142 \frametitle{Add and commit
}
144 frobnicator@frobmachine :~/projects/myfirstproject\$ echo "This is a frobfile" > frobbedfile
146 frobnicator@frobmachine:~/projects/myfirstproject\$ git status
152 (use "git add <file>..." to include in what will be committed)
156 nothing added to commit but untracked files present (use "git add" to track)
160 \begin{frame
}[fragile
]
162 frobnicator@frobmachine:~/projects/myfirstproject\$ git add frobbedfile
164 frobnicator@frobmachine:~/projects/myfirstproject\$ git status
169 Changes to be committed:
170 (use "git rm --cached <file>..." to unstage)
172 new file: frobbedfile
174 frobnicator@frobmachine:~/projects/myfirstproject\$ git commit
175 [master (root-commit)
2b7355e
] Adds frobbedfile
176 1 file changed,
1 insertion(+)
177 create mode
100644 frobbedfile
182 \frametitle{Log \& Checkout
}
183 \begin{block
}{\texttt{\$ git log
}}
189 \frametitle{Add and commit
}
193 \frametitle{Add and commit
}