diff --git a/basics/basics_handouts.tex b/basics/basics_handouts.tex index 5b43970cc3aa7bcb7e9b565d356165d1701f3289..b6fbc0e22ff4d8e93970c3b6118150c0849f7f7d 100644 --- a/basics/basics_handouts.tex +++ b/basics/basics_handouts.tex @@ -1,5 +1,7 @@ \documentclass{article} +\usepackage[hidelinks]{hyperref} + \providecommand{\handoutsTitle}{Git Basics} \usepackage{handouts} @@ -8,6 +10,44 @@ \begin{document} \makeHeader +\subsubsection*{Connect to the education server} + +Open \url{http://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html} in your browser. +\medskip + +Download and run \href{https://the.earth.li/~sgtatham/putty/latest/w32/putty.exe}{\textbf{putty.exe}. (Alternative binary files, the SSH and Telnet client itself)}. +\medskip + +Introduce the education server IP address \textbf{145.88.35.11} as destination. +\medskip + +Make sure that the \textbf{port number} is set to \textbf{22} and that \textbf{SSH} is selected as \textbf{connection type} and press ``\textbf{Open}'' to start the connection. +\medskip + +Press ``Yes'' if the security alert pops up. +\medskip + +Introduce your provided \textbf{username} and press enter. +\medskip + +Introduce your provided \textbf{password} and press enter. +\medskip + +\subsubsection*{Local configuration} +First, let Git know what your name and e-mail address is: +\begin{lstlisting} + $ git config --global user.name "Your Name" + $ git config --global user.email "your@email.address" + $ cat ~/.gitconfig +\end{lstlisting} +\bigskip + +It is convenient to have a \lstinline{projects} folder for your repositories: +\begin{lstlisting} + mkdir ~/projects + cd ~/projects +\end{lstlisting} + \subsubsection*{Create a repository} First, create an empty directory and use ``\lstinline{git init}'' to make a new repository.