Git Workflows Book

pre { background: #eee; padding: 1em; margin-bottom: 1em}

code { background: #eee; padding: 0.25em; }

Git Workflows

by Yan Pritzker

Copyright 2011, Yan Pritzker. All Rights Reserved.

  1. Why use git
    1. Offline productivity, speed, and multitasking
    2. Remote collaboration and code review
    3. Changeset cleanliness
    4. How is this book different from other git books??

  • How git works: building a mental model
    1. The Repository
    2. The Working Tree
    3. The Index

  • Setting up your environment
    1. Git bash completion
    2. Show the git branch in your bash prompt
    3. Get colorized
    4. Automatic cleanup and compression of the repo
    5. Better merge messages
    6. Better information on branches and remotes
    7. Two useful aliases: unstage and uncommit

  • Keeping your changesets clean
    1. Using the index for breaking apart quick changes
    2. Making several commits from one set of changes
    3. Using git add for deleted files
    4. Staging unrelated changes within one file
    5. Using topic branches
    6. One branch per bug
    7. Coming back to unfinished work on a topic branch
    8. Fixing the last commit
    9. Using the stash to temporarily hide your changes
    10. Keeping a topic branch in sync with its parent
    11. Changing commit history to clean up change sets

  • Time Traveling for Fun and Profit
    1. Searching for a specific change
    2. Throwing away all changes
    3. Restoring a file or directory to a past state
    4. Throwing away commits
    5. Reverting a changeset
    6. Reverting changes to one file only

  • Remote collaboration and code review
  • Page 1 of 16 | Next page