Commit 26f27f6c authored by Mihai's avatar Mihai

Add git revert

parent bcaf26d4
......@@ -404,8 +404,17 @@
\begin{framed}
\prompt\ \gitcmd\ \cmd{checkout}\ \cmdarg{\{commit-id\}}\ \cmdarg{\{filename\}}
\end{framed}
It's up to you to include this file into a new commit.
\end{pframe}
\begin{pframe}
To revert a commit there is a special command:
\vspace{-0.4cm}
\begin{framed}
\prompt\ \gitcmd\ \cmd{revert}\ \cmdarg{\{commit-id\}}\
\end{framed}
Note that you will be asked to introduce a new commit message.
\end{pframe}
\section{Extras}
\subsection{Explicit not tracking}
......@@ -418,8 +427,9 @@
Other files are also not meant to be tracked:
\begin{itemize}
\item Password-containing files;
\item Large files.
\item Large files - use git-annex for those.
\end{itemize}
\pause
You can ignore these files by listing their names in a file called
\cmdarg{.gitignore} in your repository directory root:
\vspace{-0.4cm}
......
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