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

Git Flow

Rafaell Lycan
December 10, 2015

Git Flow

A suggested workflow by using Git at Oi Internet for all projects following the best practices like Feature Branch, Commit Messages, Pull Request & Code Review, Tag, etc.

Rafaell Lycan

December 10, 2015
Tweet

More Decks by Rafaell Lycan

Other Decks in Technology

Transcript

  1. <agenda /> • Feature branch • Commit messages • Pull

    request • Code Review • Our own flow
  2. Trick Time: Did you know the rebase? git pull —rebase

    https://git-scm.com/book/en/v2/Git-Branching-Rebasing
  3. Trick Time: Did you know the amend? git commit --amend

    –C HEAD https://git-scm.com/book/en/v2/Git-Basics-Undoing- Things
  4. • Why is this change necessary? • How does it

    address the issue? • What side effects does this change have?
  5. Tim Pope Rules: • Always start with a short title

    (50 chars); • Always write commit message in the imperative; • Add more detailed explanatory if you need; • Wrap it to about 72 characters or so; • Further paragraphs come after blank lines; • Bullet points are okay, too. http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
  6. Redirect user to the requested page after login! ! https://trello.com/path/to/relevant/card!

    ! Users were being redirected to the home page after login, which is less! useful than redirecting to the page they had originally requested before! being redirected to the login form.! ! - Store requested path in a session variable! - Redirect to the stored location after successfully logging in the user https://confluence.oiinternet.corp/display/DEV/Pull+Request+Template