Added table of Git commands
This commit is contained in:
parent
74bb27a03b
commit
f0a89a4299
@ -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 "<commit message>"}. 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} <URL of remote reposistory> } \\
|
||||
\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} ``<commit message>'' } \\
|
||||
\texttt{push} & {Pushes a commit from a local repo to a remote repo \\ \texttt{git push} <name of remote repo> <name of remote branch> } \\
|
||||
\texttt{} & { \\ \texttt{} } \\
|
||||
\texttt{} & { \\ \texttt{} } \\
|
||||
\texttt{} & { \\ \texttt{} } \\
|
||||
\texttt{} & { \\ \texttt{} } \\
|
||||
\texttt{} & { \\ \texttt{} } \\
|
||||
\texttt{} & { \\ \texttt{} } \\
|
||||
\texttt{} & { \\ \texttt{} } \\
|
||||
\end{longtblr}
|
||||
|
||||
|
||||
\chapter{Easy Outlines in \LaTeX{}}
|
||||
|
Loading…
Reference in New Issue
Block a user