Skip to content

Commit 03be63f

Browse files
committed
Corrected Git. Note about R on MetaCentrum.
1 parent e325f22 commit 03be63f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

presentation/linux_bash_metacentrum_course.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4788,7 +4788,7 @@ \subsection{Tasks}
47884788
\item In the \texttt{metacentrum.sh} script load R, e.g. \texttt{module add r/4.1.3-gcc-10.2.1-6xt26dl} and start there R script as usually \texttt{R CMD BATCH script.r}
47894789
\end{itemize}
47904790
\begin{enumerate}
4791-
\item Login to selected front node via SSH
4791+
\item Login to selected front node via SSH and load R module
47924792
\item Create somewhere new directory for R packages \texttt{mkdir rpkgs} (or use default \texttt{$\sim$/R/})
47934793
\item Start R \texttt{R} and install \textbf{all} R packages needed for the task --- install them into the \texttt{rpkgs} directory \texttt{install.packages(pkgs=\ldots, lib="rpkgs")}
47944794
\item In the R script \texttt{*.r} load the packages from the \texttt{rpkgs} directory \texttt{library(package=\ldots, lib.loc="/storage/\ldots/rpkgs")}
@@ -5111,7 +5111,7 @@ \subsection{Git basics} % TODO Bit reorder commands so it is more fluent.
51115111
git log # Newest is on top, see also "git log --help"
51125112
git log --graph --oneline --decorate --all # Full long log
51135113
# Discard local changes for particular file
5114-
git checkout --- <file>
5114+
git restore <file>
51155115
# Discard all local changes
51165116
git fetch origin # Overwrite local changes
51175117
git reset --hard origin/master # If local repository is broken...

0 commit comments

Comments
 (0)