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
69 \section{Installation
}
70 \begin{frame
}[fragile
]
71 \begin{block
}{{\Large\Smiley\Smiley} Linux
}
72 Depending on the distribution you may have to do:\\
73 \texttt{\# apt-get install git
}\\
74 \texttt{\# pacman -S git
}\\
75 \texttt{\# yum install git
}\\
76 \texttt{\# emerge --ask dev-vcs/git
}\\
80 \begin{block
}{{\Large\Frowny\Smiley} Mac
}
81 Install via XCode tools. Just run
\lstinline{\$ git
} and
82 when GIT is not installed it will prompt you with instructions.
85 \begin{block
}{{\Large\Frowny\Frowny} Windows
}
86 Downoad the binary from
\url{http://git-scm.com/download/win
} and install.
91 \section{Getting started \& Workflow
}
92 \begin{frame
}[fragile
]
93 \frametitle{Getting started
}
94 \begin{block
}{Check GIT version in (GIT) bash
}
96 frobnicator@frobmachine:~\$ git --version
101 \begin{block
}{Create a repository
}
103 frobnicator@frobmachine:~/projects\$ git init myfirstproject
104 Initialized empty Git repository in /home/frobnicator/projects/myfirstproject/.git/
106 frobnicator@frobmachine:~/projects\$ ls -
1 myfirstproject/.git
119 \subsection{Four (five) stages
}
121 \frametitle{Four (five) stages
}
132 \frametitle{Workflow
}
135 \includegraphics[scale=
0.4]{2.png
}
136 \caption{Git workflow
}
140 \section{Everything is a commit
}
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
}}
186 \begin{block
}{\texttt{\$ git checkout
}}
191 \section{Branching and unevitable merging
}
193 \frametitle{Branching
}
197 \frametitle{Push \& Pull
}
204 \section{Tips \& Tricks
}
206 \frametitle{\texttt{/home/frobnicator/.gitconfig
}}
210 \frametitle{Public key
}