We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
git beyond pull & push - Jørgen Kvalsvik - NDC TechTown 2023
Explore advanced Git techniques to optimize your workflow, from efficient patch application to fixing regressed problems and rewriting history, and learn how to write clear and concise commit messages.
-
To get the most out of Git, focus on the
commit
instead of themerge
orPR
. -
Use
fixup
andrebase
to apply patches in an efficient and concise way. -
Write a clear and concise
log
message that focuses on the outcome and result, rather than the changes made. -
Use
git bisect
to identify and fix regressed problems. -
Run
rebase -i
to write alog
message that can be reviewed and adjusted before committing. -
Cherry-pick commits from another branch using
git cherry-pick
orgit apply
. -
Use
git add -p
to stage specific changes and avoid committing unwanted changes. -
When
git commit
, usefixup
to update the commit message and apply changes from a previous commit. -
Focus on the
why
behind your commits instead of just describing thewhat
. -
Avoid using
git merge
without understanding the commits involved. -
Always check the
index
before committing by runninggit diff
. -
Use
git log
to examine the commit history and identify relationships between commits. -
Write a good
log
message that describes the result and outcome of your changes. -
Use
git add -p
to stage specific changes and avoid committing unwanted changes. -
Understand the distinction between
merge
andrebase
. -
Use
git bisect
to identify and fix regressed problems. -
git
is a database that can answer questions about the commit history. -
Use
git log --graph
to visualize the commit history. -
Avoid using
fire
without a clear justification. -
Use
git rebase -i
to rewrite history and correct mistakes. -
Use
git bisect
to identify and fix regressed problems. -
Write a good
log
message that describes the result and outcome of your changes.