Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions 01-git/01-git.tex
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ \section{Basic Git commands}
\footnotesize
A lightweight convention for commit messages that enables readable history and automation. See \href{https://www.conventionalcommits.org/}{conventionalcommits.org}
\begin{itemize}
\item Format: \texttt{type(scope)!: subject}
\item Format: \texttt{type (scope)!: subject}
\item Common types: \texttt{feat}, \texttt{fix}, \texttt{docs}, \texttt{style},
\texttt{refactor}, \texttt{test}, \texttt{chore}, \texttt{perf}, \texttt{build}, \texttt{ci}
\item \textbf{scope} is optional; \textbf{subject} is imperative, no period
Expand All @@ -228,12 +228,12 @@ \section{Basic Git commands}

\begin{frame}{Conventional Commits: Examples}
\begin{block}{Examples}
\texttt{feat(auth): add OAuth2 login}\newline
\texttt{fix(api): handle 404 on users endpoint}\newline
\texttt{docs(readme): clarify local setup steps}\newline
\texttt{refactor(core)!: remove legacy sync path}\newline
\texttt{BREAKING CHANGE: sync() removed; use syncAsync()}\newline
\texttt{test(router): add coverage for redirects}
\texttt{feat (auth): add OAuth2 login}\newline
\texttt{fix (api): handle 404 on users endpoint}\newline
\texttt{docs (readme): clarify local setup steps}\newline
\texttt{refactor (core)!: remove legacy sync path}\newline
\texttt{BREAKING CHANGE\@: sync\@() removed; use syncAsync\@()}\newline
\texttt{test (router): add coverage for redirects}
\end{block}
\vspace{0.4em}
Tips: keep scope small; group commits by intent; reference issues when helpful (e.g., \texttt{fix: handle null refs (closes \#123)}).
Expand Down Expand Up @@ -284,18 +284,18 @@ \section{Advanced Git Operations}
\begin{itemize}
\item Save work in progress without committing:
\begin{block}{Commands}
\texttt{git stash} - Save current changes\newline
\texttt{git stash pop} - Apply and remove latest stash\newline
\texttt{git stash list} - View all stashes
\texttt{git stash} --- Save current changes\newline
\texttt{git stash pop} --- Apply and remove latest stash\newline
\texttt{git stash list} --- View all stashes
\end{block}
\end{itemize}

\textbf{Rebasing}:
\begin{itemize}
\item Rewrite commit history for cleaner timeline:
\begin{block}{Commands}
\texttt{git rebase main} - Replay commits on top of main\newline
\texttt{git rebase -i HEAD~3} - Interactive rebase last 3 commits
\texttt{git rebase main} --- Replay commits on top of main\newline
\texttt{git rebase -i HEAD~3} --- Interactive rebase last 3 commits
\end{block}
\end{itemize}
\end{frame}
Expand Down
Loading