Commit 3ac3f91a authored by  Joe  Rackham's avatar Joe Rackham
Browse files

Add hooks section

parent 7c6b69f0
......@@ -17,3 +17,5 @@
\@writefile{toc}{\contentsline {section}{\numberline {5}Rebasing}{3}}
\@writefile{toc}{\contentsline {subsection}{\numberline {5.1}Changing the base}{3}}
\@writefile{toc}{\contentsline {subsection}{\numberline {5.2}Interactive Mode}{3}}
\@writefile{toc}{\contentsline {section}{\numberline {6}Git Utilities}{3}}
\@writefile{toc}{\contentsline {subsection}{\numberline {6.1}Git Hooks}{3}}
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian) (preloaded format=pdflatex 2020.3.23) 23 MAR 2020 11:34
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian) (preloaded format=pdflatex 2020.3.23) 23 MAR 2020 12:16
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
......@@ -233,24 +233,25 @@ LaTeX Font Info: External font `cmex10' loaded for size
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] [2] [3] (./main.aux) )
Here is how much of TeX's memory you used:
2104 strings out of 494923
30036 string characters out of 6180742
2106 strings out of 494923
30057 string characters out of 6180742
92561 words of memory out of 5000000
5406 multiletter control sequences out of 15000+600000
7755 words of font info for 28 fonts, out of 8000000 for 9000
5407 multiletter control sequences out of 15000+600000
8063 words of font info for 29 fonts, out of 8000000 for 9000
14 hyphenation exceptions out of 8191
41i,6n,32p,271b,187s stack positions out of 5000i,500n,10000p,200000b,80000s
</us
r/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb></usr/shar
e/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/share/texli
ve/texmf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb></usr/share/texlive/texm
f-dist/fonts/type1/public/amsfonts/cm/cmr17.pfb></usr/share/texlive/texmf-dist/
fonts/type1/public/amsfonts/cm/cmsy10.pfb></usr/share/texlive/texmf-dist/fonts/
type1/public/amsfonts/cm/cmtt10.pfb>
Output written on main.pdf (3 pages, 77812 bytes).
r/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx10.pfb></usr/shar
e/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb></usr/share/texl
ive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/share/texlive/tex
mf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb></usr/share/texlive/texmf-dist
/fonts/type1/public/amsfonts/cm/cmr17.pfb></usr/share/texlive/texmf-dist/fonts/
type1/public/amsfonts/cm/cmsy10.pfb></usr/share/texlive/texmf-dist/fonts/type1/
public/amsfonts/cm/cmtt10.pfb>
Output written on main.pdf (3 pages, 86300 bytes).
PDF statistics:
38 PDF objects out of 1000 (max. 8388607)
26 compressed objects within 1 object stream
42 PDF objects out of 1000 (max. 8388607)
29 compressed objects within 1 object stream
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)
No preview for this file type
No preview for this file type
......@@ -121,6 +121,8 @@ Reset:
\item \texttt{git rebase *base*} will change the base of commits made on the remote repo to be the specified commit
\item If we are working on a branch this creates a linear history; can do a fast-forward merge
\item The specified base can either be a commit hash or \texttt{HEAD~*num*} specifying a number of commits backwards from the HEAD
\texttt{text}
\item \texttt{git merge-base *bname* *orig*} returns the hash of the origional base of the commit
\end{itemize}
\subsection{Interactive Mode}
......@@ -137,7 +139,17 @@ Reset:
drop & Remove commit \\ \hline
\end{tabular}
\section{Git Utilities}
\subsection{Git Hooks}
\begin{itemize}
\item Hooks are scripts that run everytime a particular event happens in a repo
\item Hooks can either exist in local or server-sie repos; they only affect the repo where they reside
\item Hooks are stored in the \texttt{.git/hooks} directory
\begin{itemize}
\item This directory is initialised with some \texttt{.sample} example hooks
\item These hooks are `installed` by removing the extension
\end{itemize}
\end{itemize}
\end{document}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment