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
commitinstead of themergeorPR. -
Use
fixupandrebaseto apply patches in an efficient and concise way. -
Write a clear and concise
logmessage that focuses on the outcome and result, rather than the changes made. -
Use
git bisectto identify and fix regressed problems. -
Run
rebase -ito write alogmessage that can be reviewed and adjusted before committing. -
Cherry-pick commits from another branch using
git cherry-pickorgit apply. -
Use
git add -pto stage specific changes and avoid committing unwanted changes. -
When
git commit, usefixupto update the commit message and apply changes from a previous commit. -
Focus on the
whybehind your commits instead of just describing thewhat. -
Avoid using
git mergewithout understanding the commits involved. -
Always check the
indexbefore committing by runninggit diff. -
Use
git logto examine the commit history and identify relationships between commits. -
Write a good
logmessage that describes the result and outcome of your changes. -
Use
git add -pto stage specific changes and avoid committing unwanted changes. -
Understand the distinction between
mergeandrebase. -
Use
git bisectto identify and fix regressed problems. -
gitis a database that can answer questions about the commit history. -
Use
git log --graphto visualize the commit history. -
Avoid using
firewithout a clear justification. -
Use
git rebase -ito rewrite history and correct mistakes. -
Use
git bisectto identify and fix regressed problems. -
Write a good
logmessage that describes the result and outcome of your changes.