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

Advanced Git

Mike McQuaid
February 29, 2012

Advanced Git

A walkthrough of some lesser-known advanced features in Git.
Presented at the KDAB company meeting in 2011.

Mike McQuaid

February 29, 2012
Tweet

More Decks by Mike McQuaid

Other Decks in Programming

Transcript

  1. a369495 HEAD@{39}: commit (amend): Make tray icon strings more consistent.

    5e7f0b0 HEAD@{40}: commit: Make tray icon strings more consistent. 8b84f7f HEAD@{41}: commit: Fix not being able to run previous task from menu. 436df83 HEAD@{42}: commit: Fix start task menu separator usage. 8e61a3f HEAD@{43}: rebase -i (continue): More consistent alternate row colors. 7c56620 HEAD@{44}: rebase -i (continue): Improve tasks eliding. 0def733 HEAD@{45}: checkout: moving from master to 0def733217f57276901da9ff578366f56d2d0f02 74fae75 HEAD@{46}: rebase -i (fixup): Improve tasks eliding. 515aa9b HEAD@{47}: rebase -i (fixup): updating HEAD
  2. [sendemail] identity = kdab thread = false chainreplyto = false

    suppresscc = all [sendemail "kdab"] smtpserver = mail.kdab.com smtpencryption = tls smtpserverport = 25 smtpuser = mike from = [email protected]
  3. 1 branch per feature git merge / git pull many

    branches with many merge commits 1 branch used for release
  4. 1 branch or commit per feature git rebase / git

    pull --rebase 1 branch with no merge commits 1 branch used for release
  5. This is the short commit message Longer commit message that

    spans multiple lines. - List items - Like this
  6. From 2ca294d83d8f64b8ff1611efa4aa4d1baa4f291a Mon Sep 17 00:00:00 2001 From: Mike McQuaid

    <[email protected]> Date: Wed, 20 Apr 2011 12:17:37 +0100 Subject: [PATCH] Add DeployQt4 module. Add a module that gives better support to BundleUtilities to handle Qt plugins and deploy Qt applications. --- Modules/DeployQt4.cmake | 104 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 104 insertions(+), 0 deletions(-) create mode 100644 Modules/DeployQt4.cmake diff --git a/Modules/DeployQt4.cmake b/Modules/DeployQt4.cmake ...
  7. --- a/image.png +++ b/image.png @@ -1,12 +1,12 @@ -File Size

    : 70 kB -File Modification Date/Time : 2009:04:21 07:02:45-07:00 +File Size : 94 kB +File Modification Date/Time : 2009:04:21 07:02:43-07:00 -Image Width : 1058 -Image Height : 889 +Image Width : 1056 +Image Height : 827