diff --git a/005/codex-005.tex b/005/codex-005.tex index 7f3ce39..364eee1 100644 --- a/005/codex-005.tex +++ b/005/codex-005.tex @@ -452,7 +452,38 @@ Now that we've added our files, they are considered to be \texttt{staged}, which If we're happy with the files we've staged, we can now commit them by using \texttt{git commit -m ""}. Note that we have to add a commit message. This can be anything you like, but it helps to make it something that will be useful down the road like ``updated chapter three''. You'll get some miscellaneous messages about what Git is doing and then it is done. You've created your first commit, and all of your staged files are now \texttt{committed}.\footnote{You can also make this process even more efficient by creating some bash alias for the various Git commands. See ``More Fun with bash'' in issue \#4.} +\section{Summary of Git Commands} +\begin{longtblr} +[ + caption = {Summary of Git Commands}, + label = {tb:gitcommsum}, +% theme = {custom1} +]{ + width = {\textwidth}, + colspec = { X[20,l] X[80,l] }, + hlines = {0.5pt,solid}, + vline{1,3} = {0.5pt,solid}, + rows = {5mm, m, rowsep=1.5pt}, + row{1} = {font=\bfseries}, + rowhead = 1, + cells = {font=\sffamily\fontsize{9pt}{12pt}\selectfont}, +} +Command & Purpose (\& Example) \\ +\texttt{init} & {Creates a git repository \\ \texttt{git init} } \\ +\texttt{clone} & {Clones a remote repository locally \\ \texttt{git clone} } \\ +\texttt{git --version} & Displays the version of git installed on your system \\ +\texttt{add} & {Stages (i.e., adds) files to a commit \\ \texttt{git add file1 file2} } \\ +\texttt{commit} & {Commits stages files \\ \texttt{git commit -m} ``'' } \\ +\texttt{push} & {Pushes a commit from a local repo to a remote repo \\ \texttt{git push} } \\ +\texttt{} & { \\ \texttt{} } \\ +\texttt{} & { \\ \texttt{} } \\ +\texttt{} & { \\ \texttt{} } \\ +\texttt{} & { \\ \texttt{} } \\ +\texttt{} & { \\ \texttt{} } \\ +\texttt{} & { \\ \texttt{} } \\ +\texttt{} & { \\ \texttt{} } \\ +\end{longtblr} \chapter{Easy Outlines in \LaTeX{}}