Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
courses
Git course
Commits
0f3fd2ab
Commit
0f3fd2ab
authored
Mar 26, 2018
by
Mihai Lefter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reordering slides in basics
parent
2a53a7bf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
17 deletions
+25
-17
basics/basics.tex
basics/basics.tex
+25
-17
No files found.
basics/basics.tex
View file @
0f3fd2ab
...
...
@@ -12,6 +12,14 @@
\usetheme
{
lumc
}
\AtBeginSection
[]
{
\begin{frame}
\frametitle
{
Table of contents
}
\tableofcontents
[currentsection, subsectionstyle=hide/hide]
\end{frame}
}
\begin{document}
% This disables the \pause command, handy in the editing phase.
...
...
@@ -21,8 +29,8 @@
\makeTitleSlide
{
\includegraphics
[width=3.5cm]
{
../shared/git
_
logo.pdf
}}
% First page of the presentation.
\section
{
Star
ting
a project
}
\subsection
{
Y
ou can either
}
\section
{
Get
ting
started
}
\subsection
{
To start a project y
ou can either
:
}
\begin{pframe}
1. Start from scratch on your own:
\vspace
{
-0.3cm
}
...
...
@@ -37,7 +45,7 @@
2. Or you can
\cmd
{
clone
}
an existing remote (or local) repository:
\vspace
{
-0.3cm
}
\begin{framed}
\prompt\ \gitcmd\ \cmd
{
clone
}
\ \cmdarg
{
\
<
path-to-repository
\
>
}
\\
\prompt\ \gitcmd\ \cmd
{
clone
}
\ \cmdarg
{
\
{
path-to-repository
\
}
}
\\
\cliout
{
Cloning into
\{
repo-name
\}
...
}
\end{framed}
\end{pframe}
...
...
@@ -58,20 +66,7 @@
\important
{
Removing this directory means removing your repository!
}
\end{pframe}
\section
{
Git Operations
}
\begin{pframe}
\vspace
{
-0.9cm
}
Operations can be local or remote.
\\
Most importantly, they track files around these three
\textbf
{
areas
}
\footnote
[1]
{
\scriptsize
{
Adapted from the
\href
{
http://git-scm.com/book/en/v2/Getting-Started-Git-Basics
}
{
Pro Git Book
}
.
}}
:
\begin{center}
\includegraphics
[width=0.7\textwidth]
{
images/git
_
areas.pdf
}
\\
\end{center}
\end{pframe}
\subsection
{
Prelude: quick setup
}
\subsection
{
Quick setup
}
\begin{pframe}
If you have never used
\gitcmd\
before you need to tell it who you are. This
information is saved in
\cmdarg
{
.gitconfig
}
\
and used to mark each commit.
...
...
@@ -103,6 +98,19 @@
\end{framed}
\end{pframe}
\subsection
{
Playing areas
}
\begin{pframe}
Git operations track files around these three
\textbf
{
areas
}
\footnote
[1]
{
\scriptsize
{
Adapted from the
\href
{
http://git-scm.com/book/en/v2/Getting-Started-Git-Basics
}
{
Pro Git Book
}
.
}}
:
\begin{center}
\includegraphics
[width=0.7\textwidth]
{
images/git
_
areas.pdf
}
\\
\end{center}
\vspace
{
-0.4cm
}
\end{pframe}
\section
{
Git Operations
}
\subsection
{
Checking the status of your files
}
\begin{pframe}
\begin{framed}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment