Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Git course
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
courses
Git course
Commits
d851ecee
Commit
d851ecee
authored
Oct 11, 2013
by
Laros
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
First version of the basics handouts.
parent
a3abe0e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
73 additions
and
0 deletions
+73
-0
basics/basics_handouts.tex
basics/basics_handouts.tex
+73
-0
No files found.
basics/basics_handouts.tex
0 → 100644
View file @
d851ecee
\documentclass
{
article
}
\usepackage
{
fullpage
}
\frenchspacing
\setlength
{
\parindent
}{
0pt
}
\pagestyle
{
empty
}
\begin{document}
\begin{center}
{
\bf
Git Introduction Course
}
Git Basics practical.
\end{center}
\bigskip
\subsubsection*
{
Create a repository.
}
First, create an empty directory and use ``
\texttt
{
git init
}
'' to make a new
repository.
\begin{itemize}
\item
\emph
{
Question:
}
How can you see that you are working in a Git
repository?
\end{itemize}
\bigskip
Check the status of your files.
\bigskip
\subsubsection*
{
Your first commit.
}
Create a new file named ``README'' (with an editor, or by using the
``
\texttt
{
touch
}
'' command).
\begin{itemize}
\item
\emph
{
Question:
}
What is the status of this new file?
\end{itemize}
\bigskip
Stage this file for the next commit using ``
\texttt
{
git add
}
''.
\begin{itemize}
\item
\emph
{
Question:
}
What is the status of this file now?
\end{itemize}
\bigskip
Commit your changes.
\begin{itemize}
\item
\emph
{
Question:
}
What happened to the status?
\end{itemize}
\bigskip
\subsubsection*
{
Manipulation in the staging area.
}
Edit your file and stage it.
\bigskip
Now remove the file from the staging area.
\bigskip
\subsubsection*
{
Working with versions.
}
Commit your changed file.
\bigskip
Now you change your mind, and want to revert this commit.
\begin{itemize}
\item
\emph
{
Hint:
}
Use ``
\texttt
{
git log
}
'' to see a list of all your
versions.
\end{itemize}
\bigskip
Edit your file again and check the differences with your last commit.
\begin{itemize}
\item
\emph
{
Question:
}
What is the difference with your first commit?
\end{itemize}
\bigskip
Make a file that you do not want to track.
\end{document}
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