Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Gitting Things Done

Gitting Things Done

Presented on September 16 2022 at WordCamp Netherlands, Arnhem, The Netherlands.
https://netherlands.wordcamp.org/2022/session/gitting-things-done/
---------------------------------------------------------------
Git is the modern-day version management system of choice.
We all know how to commit, push, pull and merge. But what about (interactive) rebasing, fixing up commits, cherry picking lines and bisecting the history ?
And what are those atomic commits you keep hearing people talk about and why would they be of any use to you ?

Come and learn how to get the most out of the tooling you already use every day, find ways to make life easier on the people who review your code and leave knowing how to create a clean commit history which is a joy to peruse.
---------------------------------------------------------------

Juliette Reinders Folmer

September 19, 2022
Tweet

More Decks by Juliette Reinders Folmer

Other Decks in Programming

Transcript

  1. “ There is no limit to the amount of remotes

    you can add or that can exist
  2. Squash vs Fixup ▪ Combines changes into one commit ▪

    Combines the commit messages + presents for edit ▪ Combines changes into one commit ▪ Throws away all but the original commit message
  3. About Commit Messages ▪ Short description (title) ▪ Long description:

    Describe the why's ▪ Reference links ▪ Use proper punctuation! Voiculescu Bogdan
  4. Give Credit Where Credit is Due Prefix: description Long description

    explaining why the changes were made, why they were made in this way. What other solutions were considered and rejected and for what reason. Reference(s): • https://.... Co-authored-by: Contributor Name <[email protected]>
  5. To Force Push Or Not To Force Push DO: ▪

    Non- collaborative branch, not pulled ▪ Pulled, rebased, no changes MAYBE ▪ Pulled, typo/CS fix DON'T: ▪ Collaborative branch, not pulled ▪ Pulled, review has started