Skip to content

Commit

Permalink
Add slide defining remote repositories
Browse files Browse the repository at this point in the history
Commits and branches have their own introduction, so remote repos should
have one too.
  • Loading branch information
jmbtutor committed Jun 20, 2018
1 parent 86b9467 commit 8965a88
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions understanding-git.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1135,6 +1135,20 @@ \subsection{\gitcmd{merge}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\section{Remote Repositories}

\begin{frame}
\frametitle{What are remote repositories?}
\begin{itemize}
\item Git is distributed, so a project can reside in multiple places.
\item Remote repositories are repos that track the same project but reside elsewhere.
\item Local and remote repositories can interact with each other.
\item Remote repositories can be given names and are managed using \gitcmd{remote}.
\end{itemize}
\vfill
\begin{block}{\gremote{origin}}
\gremote{origin} is the default name of the default remote repository. Neither this name nor remote is special.
\end{block}
\end{frame}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\subsection{\gitcmd{fetch}}

Expand All @@ -1146,11 +1160,6 @@ \subsection{\gitcmd{fetch}}
\item Updates any remote branch references, but does not update any local ones.
\item Does not move \gHEAD{}.
\end{itemize}
Recall that Git is decentralized; \gitsubcmd{fetch} allows you to make use of commits and branches from other copies of the repository.
\vfill
\begin{block}{\gremote{origin}}
\gremote{origin} is the default name of the default remote repository. Neither this name nor remote is special.
\end{block}
\end{frame}

\begin{frame}
Expand Down

0 comments on commit 8965a88

Please sign in to comment.