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

The Git Power

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest. →

The Git Power

Pequena introdução de como usar GIT para controle de versão de arquivos.

Avatar for Hullen Gonzales

Hullen Gonzales

June 04, 2014

Other Decks in Technology

Transcript

  1. WHY GIT? • Fácil de aprender • É rápido •

    É pequeno • Redundância e replicação do código • Descentralizado, mas centralizado #what? • Tudo é local
  2. Configurando • $ git config -- global user.name "Hullen Gonzales"

    • $ git config -- global user.email “[email protected]” • $ git config -- global merge.tool meld ! É possível alterar essas informações no arquivo ~/.gitconfig
  3. Clico de estado do arquivo Clico repetido diversas vezes, em

    cada modificação que você faz nos arquivos.
  4. Fácil de aprender add/remove/commit • $ git add . •

    $ git add -u . • $ git reset HEAD readme.md • $ git commit -am “Mensagem" • $ git commit --amend • $ git checkout -- readme.md • $ git status
  5. Fácil de aprender pull/push/stash/log • $ git push origin master

    • $ git pull —rebase • $ git stash save “Mensagem" • $ git stash list • $ git log • $ git log —stat
  6. Fácil de aprender branch/checkout/merge/tag • $ git branch • $

    git branch -a (mostra também locais) • $ git checkout -b nomebranch • $ git checkout master • $ git merge nomebranch • $ git tag v1.0
  7. ?