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

Minuto Seguros - Git is love second edition

Minuto Seguros - Git is love second edition

Introduction to Git (remake) - trying to show (again) to my colleagues what a real version control is

Luiz Freneda

June 18, 2015
Tweet

More Decks by Luiz Freneda

Other Decks in Programming

Transcript

  1. Git is a free and open source distributed version control

    system designed to handle everything from small to very large projects with speed and efficiency
  2. • Extremely fast actions • Internet connection is not required

    • Repository is local Distributed version control
  3. Git non-basic commands Git init --bare Git blame <file> Git

    diff Git merge branch-name --no-ff Git rebase -i Git cherry-pick Git reflog Git add -i Git add -p Git remote prune origin Git stash Git fetch Git commit --amend
  4. Git pull Git pull origin master { Git fetch origin

    Git merge origin/master Git pull --rebase origin master { Git fetch origin Git rebase origin/master
  5. Git log git log --oneline git log --graph git log

    --all --color --graph --pretty=format:'%Cred%h%Creset -%C (yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' -- abbrev-commit
  6. git config --global alias.lg "log --all --color --graph --pretty=format:'%Cred%h% Creset

    -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>% Creset' --abbrev-commit" Alias to the rescue!