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: 01-git/01-git.tex
+75Lines changed: 75 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -213,6 +213,33 @@ \section{Basic Git commands}
213
213
\end{itemize}
214
214
\end{frame}
215
215
216
+
\begin{frame}{Conventional Commits}
217
+
There are multiple examples of organizing commit messages naming (so called convention)
218
+
219
+
\footnotesize
220
+
A lightweight convention for commit messages that enables readable history and automation. See \href{https://www.conventionalcommits.org/}{conventionalcommits.org}
221
+
\begin{itemize}
222
+
\item Format: \texttt{type(scope)!: subject}
223
+
\item Common types: \texttt{feat}, \texttt{fix}, \texttt{docs}, \texttt{style},
\texttt{BREAKING CHANGE: sync() removed; use syncAsync()}\newline
237
+
\texttt{test(router): add coverage for redirects}
238
+
\end{block}
239
+
\vspace{0.4em}
240
+
Tips: keep scope small; group commits by intent; reference issues when helpful (e.g., \texttt{fix: handle null refs (closes \#123)}).
241
+
\end{frame}
242
+
216
243
\begin{frame}{Branches in Git}
217
244
\footnotesize
218
245
In Git, a branch represents an independent line of development, enabling you to work on different features, fixes, or experiments without affecting the main line of the project.\\
@@ -251,6 +278,53 @@ \section{Basic Git commands}
251
278
\end{itemize}
252
279
\end{frame}
253
280
281
+
\section{Advanced Git Operations}
282
+
283
+
\begin{frame}{Advanced Git Commands}
284
+
\textbf{Stashing Changes}:
285
+
\begin{itemize}
286
+
\item Save work in progress without committing:
287
+
\begin{block}{Commands}
288
+
\texttt{git stash} - Save current changes\newline
289
+
\texttt{git stash pop} - Apply and remove latest stash\newline
290
+
\texttt{git stash list} - View all stashes
291
+
\end{block}
292
+
\end{itemize}
293
+
294
+
\textbf{Rebasing}:
295
+
\begin{itemize}
296
+
\item Rewrite commit history for cleaner timeline:
297
+
\begin{block}{Commands}
298
+
\texttt{git rebase main} - Replay commits on top of main\newline
299
+
\texttt{git rebase -i HEAD~3} - Interactive rebase last 3 commits
0 commit comments