this is for holding javascript data
John Blischak Revert change in working directory with git checkout.
about 9 years ago
Commit id: c5f8062eee8207fc4c819c5c00ec17ccd36ae462
deletions | additions
diff --git a/Version your code.tex b/Version your code.tex
index 0e74cb3..1d9eb1a 100644
--- a/Version your code.tex
+++ b/Version your code.tex
...
+# Removes samples with more than 5% missing data
\end{lstlisting}
As expected, this shows us the one line that we added to \verb|clean.py|.
If we wanted to save this edit, we could add it to the staging area using \verb|git add| and then commit the change using \verb|git commit|, as we did above.
Instead, this time we'll restore the previous version of the file using the command \verb|git checkout|.
\begin{lstlisting}
$ git checkout -- clean.py
$ git diff
\end{lstlisting}
\verb|git diff| returns no output because \verb|git checkout| reverted \verb|clean.py| to the version in the last commit.