- descentralizado: cada um quebra o seu
- rápido: se você está usando linux :)
- simples: se você ñ trouxer vicios…
- git config —global user.name “Drupal Hacker”
- git config —global user.email “[email protected]”
- git init
- git add .
- git commit -m “es mi primer commit, ¿lo hice bien?”
- git status
- git add meu-arquivo.css
- git commit
- github
- gitorious
- codeplane
- midominio.com
- git remote add origin [email protected]:hacker/the-best-theme-ever.git
- git push -u origin master
- blog, tweet, etc
- git checkout -b footer
- edita, comita, edita, comita, edita, comita
- git checkout master
- git merge footer
- git push
- git remote add bestfriend git://amizade.com/amigao/the-best-theme-ever.git
- git fetch bestfriend
- git merge bestfriend
CONFLICT: merge in meu-arquivo.css
Automatic merge failed, fix conflicts and commit the result.
- edita
{% code }
<<<<<<< HEAD:meu-arquivo.css
body.node {
===
body.page-node {
>>>>>>> 78a33d3:meu-arquivo.css
{ end %}
- git add meu-arquivo.css
- git commit
- sempre use branches
- nunca rode git push —force
- git config —system receive.denyNonFastForwards true
- use mais de um repo na rede, use um workflow de rebase
- git remote add oficial git://servidor-oficial/projeto.git
- git fetch oficial
- git checkout oficial/master
- git checkout -b bugfix-complicado
- edita, comita, edita, comita, edita, comita
- git fetch oficial
- git rebase oficial/master
- git push minha-versao-no-github bugfix-complicado
- merge request (pode ser por telefone, email, tambor, bat sinal)
- git clone drupal://zen
{% code }
[url “http://git.drupal.org/project/”]
insteadOf = drupal://
{ end %}
- git checkout -b issue-version
- edita, comita
- git fetch origin
- git rebase origin/7.x-3.x
Commit message
{% code %}
- by barraponto: this bug was boring my life to death
{% end %}
- git format-patch origin/7.x-3-x —stdout > ~/Patches/#5775848-way-boring-bug-5.patch
- posta no drupal.org, espera o mantenedor commitar (cutuque ele no twitter)
- https://github.com/barraponto/dotfiles/blob/master/gitconfig My git config
- http://drupal.org/node/707484 Making a Drupal patch with git
- http://drupal.org/node/1054616 Advanced Patch contributor Guide
- git clone drupal://drupal
- git checkout origin/7.x
- git submodule add -b 7.x-3.x drupal://zen
- git submodule add -b 7.x-2.x github://pathauto
- dog manifests (tipo os make files)
- http://help.github.com/set-your-user-name-email-and-github-token/
- http://valeriofarias.com/git-para-designers/
- http://randyfay.com/node/89
- http://randyfay.com/node/91
- http://drupal.org/node/707484
- http://drupal.org/node/1054616
- https://github.com/barraponto/dotfiles/blob/master/gitconfig
- http://drupal.org/project/dog
- http://groups.drupal.org/node/140949