You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: presentation/linux_bash_metacentrum_course.tex
+18-7Lines changed: 18 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -4698,6 +4698,7 @@ \subsection{Git basics}
4698
4698
# Add files to trace with Git
4699
4699
# Ignored files (or patterns) can be listed in .gitignore file
4700
4700
git add <files> # Or "git add *"
4701
+
git status # See changed files, commits in stagging, etc.
4701
4702
\end{bashcode}
4702
4703
\end{frame}
4703
4704
@@ -4748,11 +4749,12 @@ \subsection{Git basics}
4748
4749
\begin{frame}[fragile]{Working with Git --- settings and more}
4749
4750
\begin{itemize}
4750
4751
\item Basically repeat in \texttt{git} \texttt{add}, \texttt{commit} and \texttt{push} to get your work to the repository, and \texttt{fetch} and \texttt{pull} to download news from central repository
4751
-
\item\texttt{diff} to see local changes
4752
+
\item\texttt{diff} to see local changes, \texttt{status} to see state
4752
4753
\item\texttt{log} and \texttt{branch} show history and branches
4753
-
\item\texttt{branch} and \texttt{merge} for branching code and merging changes back to master (main) branch
4754
+
\item\texttt{branch}, \texttt{checkout} and \texttt{merge} for branching code and merging changes back to master (main) branch
4754
4755
\end{itemize}
4755
4756
\begin{bashcode}
4757
+
git diff # See changes in particular text files
4756
4758
gitk # Graphical interface
4757
4759
git config color.ui true # Set output to be colored
\item Clone over SSH repository \texttt{USER@vyuka.natur.cuni.cz:/home/dadaism} (use your credentials on the testing server) and go to \texttt{dadaism} directory.
4772
+
\item Add some text files, edit existing text files. Do not add images or another non-text files, do not add large files.
4773
+
\item Push your changes back to the repository.
4774
+
\item Fetch changes done by others.
4775
+
\item See history of changes, who did what, etc.
4776
+
\item Use at least \texttt{git} commands \texttt{clone},\texttt{diff}, \texttt{status}, \texttt{add}, \texttt{commit}, \texttt{push}, \texttt{fetch}, \texttt{pull}, \texttt{log} and \texttt{gitk}.
4777
+
\item You can try to play with branches --- \texttt{branch}, \texttt{checkout}, \texttt{merge}.
4778
+
\item communicate with others to avoid conflicting edits.
0 commit comments