Skip to content

Commit c046713

Browse files
authored
Update git-cheat-sheet-pt-br.md
Read to deploy, all items translated.
1 parent 23e24e8 commit c046713

File tree

1 file changed

+78
-79
lines changed

1 file changed

+78
-79
lines changed

other-sheets/git-cheat-sheet-pt-br.md

+78-79
Original file line numberDiff line numberDiff line change
@@ -446,78 +446,78 @@ $ git pull --rebase <remote> <branch>
446446
$ git push remote <remote> <branch>
447447
```
448448

449-
##### Delete a branch on the remote:
449+
##### Deleta uma branch na remota:
450450
```
451-
$ git push <remote> :<branch> (since Git v1.5.0)
451+
$ git push <remote> :<branch> (desde Git v1.5.0)
452452
```
453453
OR
454454
```
455-
$ git push <remote> --delete <branch> (since Git v1.7.0)
455+
$ git push <remote> --delete <branch> (desde Git v1.7.0)
456456
```
457457

458-
##### Publish your tags:
458+
##### Publicar suas tags:
459459
```
460460
$ git push --tags
461461
```
462462
<hr>
463463

464-
#### Configure the merge tool globally to meld (editor)
464+
#### Configurar a ferramenta de merge globalmente para fundir o código
465465
```bash
466466
$ git config --global merge.tool meld
467467
```
468468

469-
##### Use your configured merge tool to solve conflicts:
469+
##### Use sua própria ferramenta/editor para resolver conflitos:
470470
```
471471
$ git mergetool
472472
```
473473

474-
## Merge & Rebase
474+
## Merge & Rebase (fundir e rebasear)
475475

476-
##### Merge branch into your current HEAD:
476+
##### Fazer merge da branch na pilha (HEAD) atual:
477477
```
478478
$ git merge <branch>
479479
```
480480

481-
##### Rebase your current HEAD onto &lt;branch&gt;:<br>
482-
<em><sub>Don't rebase published commit!</sub></em>
481+
##### Rebasear a pilha (HEAD) em &lt;branch&gt;:<br>
482+
<em><sub>Só faça rebase de commit publicado!</sub></em>
483483

484484
```
485485
$ git rebase <branch>
486486
```
487487

488-
##### Abort a rebase:
488+
##### Aborte o rebase:
489489
```
490490
$ git rebase --abort
491491
```
492492

493-
##### Continue a rebase after resolving conflicts:
493+
##### Continue um rebase depois de resolver os conflitos:
494494
```
495495
$ git rebase --continue
496496
```
497497

498-
##### Use your editor to manually solve conflicts and (after resolving) mark arquivo as resolved:
498+
##### Use seu editor para resolver conflitos manualmente e (depois de resolvidos) marcar arquivo como resolvido:
499499
```
500-
$ git add <resolved-arquivo>
500+
$ git add <arquivo_resolvido>
501501
```
502502

503503
```
504-
$ git rm <resolved-arquivo>
504+
$ git rm <arquivo_resolvido>
505505
```
506506

507-
##### Squashing commits:
507+
##### Squashing commits (tradução literal seria "esmagar commits"):
508508
```
509-
$ git rebase -i <commit-just-before-first>
509+
$ git rebase -i <commit-logo-antes-do-primeiro>
510510
```
511511

512-
Now replace this,
512+
Agora, substitua...
513513

514514
```
515515
pick <commit_id>
516516
pick <commit_id2>
517517
pick <commit_id3>
518518
```
519519

520-
to this,
520+
para isso,
521521

522522
```
523523
pick <commit_id>
@@ -526,44 +526,44 @@ squash <commit_id3>
526526
```
527527
<hr>
528528

529-
## Undo
529+
## Desfazer
530530

531-
##### Discard all local changes in your working diretório:
531+
##### Descartar todas as alterações locais no seu atual diretório:
532532
```
533533
$ git reset --hard HEAD
534534
```
535535

536-
##### Get all the arquivos out of the staging area(i.e. undo the last `git add`):
536+
##### Tira todos os arquivos da área temporária (staging) (ou seja, desfaz o último `git add`):
537537
```
538538
$ git reset HEAD
539539
```
540540

541-
##### Discard local changes in a specific arquivo:
541+
##### Descarta as alterações locais em um arquivo específico:
542542
```
543543
$ git checkout HEAD <arquivo>
544544
```
545545

546-
##### Revert a commit (by producing a new commit with contrary changes):
546+
##### Reverte um commit (produzindo um novo commit com mudanças contrárias ou diferentes):
547547
```
548548
$ git revert <commit>
549549
```
550550

551-
##### Reset your HEAD pointer to a previous commit and discard all changes since then:
551+
##### Reseta o ponteiro da HEAD para um commit anterior e descarta todas as mudanças desde aquele ponto:
552552
```
553553
$ git reset --hard <commit>
554554
```
555555

556-
##### Reset your HEAD pointer to a remote branch current state.
556+
##### Reseta o ponteiro da HEAD pointer para o estado atual de uma branch remota.
557557
```
558558
$ git reset --hard <remote/branch> e.g., upstream/master, origin/my-feature
559559
```
560560

561-
##### Reset your HEAD pointer to a previous commit and preserve all changes as unstaged changes:
561+
##### Reseta o ponteiro da HEAD para um commit anterior e mantém todas as mudanças na staged:
562562
```
563563
$ git reset <commit>
564564
```
565565

566-
##### Reset your HEAD pointer to a previous commit and preserve uncommitted local changes:
566+
##### Reseta o ponteiro da HEAD para um commit anterior e preserva mudanças locais sem commit:
567567
```
568568
$ git reset --keep <commit>
569569
```
@@ -577,20 +577,19 @@ $ git commit -m "remove xyz arquivo"
577577
<hr>
578578

579579
## Git-Flow
580-
Improved [Git-flow](https://github.com/petervanderdoes/gitflow-avh)
581580

582581
### Index
583-
* [Setup](#setup)
584-
* [Getting Started](#getting-started)
585-
* [Features](#features)
586-
* [Make a Release](#make-a-release)
582+
* [Instalação](#instalação)
583+
* [Iniciando](#iniciando)
584+
* [Características](#características)
585+
* [Fazer um release](#fazer-um-release)
587586
* [Hotfixes](#hotfixes)
588-
* [Commands](#commands)
587+
* [Comandos](#comandos)
589588

590589
<hr>
591590

592-
### Setup
593-
###### You need a working git installation as prerequisite. Git flow works on OSX, Linux and Windows.
591+
### Instalação
592+
###### Você precisa de uma instalação do Git como pré-requisito. Git flow funciona em OSX, Linux e Windows.
594593

595594
##### OSX Homebrew:
596595
```
@@ -608,113 +607,113 @@ $ sudo apt-get install git-flow
608607
```
609608

610609
##### Windows (Cygwin):
611-
###### You need wget and util-linux to install git-flow.
610+
###### Você vai precisar do wget e util-linux para instalar o git-flow.
612611
```bash
613612
$ wget -q -O - --no-check-certificate https://raw.githubusercontent.com/petervanderdoes/gitflow/develop/contrib/gitflow-installer.sh install <state> | bash
614613
```
615614
<hr>
616615

617-
### Getting Started
618-
###### Git flow needs to be initialized in order to customize your project setup. Start using git-flow by initializing it inside an existing git repository:
619-
##### Initialize:
620-
###### You'll have to answer a few questions regarding the naming conventions for your branches. It's recommended to use the default values.
616+
### Iniciando
617+
###### Git flow precisa inicializar para personalizar um projeto. O uso do git-flow começa ao inicializar dentro de um repositório git existente:
618+
##### Inicializar:
619+
###### Você vai precisar responder algumas questões para personalizar a configuração do projeto. Recomenda-se usar as configurações padrão.
621620
```shell
622621
git flow init
623622
```
624-
OR
625-
###### To use default
623+
OU
624+
###### Para usar o padrão (default)
626625
```shell
627626
git flow init -d
628627
```
629628
<hr>
630629

631-
### Features
632-
###### Develop new features for upcoming releases. Typically exist in developers repos only.
633-
##### Start a new feature:
634-
###### This action creates a new feature branch based on 'develop' and switches to it.
630+
### Características
631+
###### Desenvolva novas características para versões posteriores. Tipicamente existe em repos de desenvolvedores apenas.
632+
##### Iniciar uma nova feature (característica):
633+
###### Esta ação cria uma branch de nova feature baseada no 'develop' e alterna para ela.
635634
```
636635
git flow feature start MYFEATURE
637636
```
638637

639-
##### Finish up a feature:
640-
###### Finish the development of a feature. This action performs the following:
641-
###### 1) Merged MYFEATURE into 'develop'.
642-
###### 2) Removes the feature branch.
643-
###### 3) Switches back to 'develop' branch
638+
##### Terminar uma feature:
639+
###### Finaliza o desenvolvimento da feature. Esta ação realiza o seguinte:
640+
###### 1) Faz o merged da MYFEATURE na 'develop'.
641+
###### 2) Remove a branch 'feature'.
642+
###### 3) Volta para a branch 'develop'
644643
```
645644
git flow feature finish MYFEATURE
646645
```
647646

648-
##### Publish a feature:
649-
###### Are you developing a feature in collaboration? Publish a feature to the remote server so it can be used by other users.
647+
##### Publicar uma feature:
648+
###### Você desenvolve uma feature em equipe? Publique uma feature para o servidor remoto para que os outros possam usá-la.
650649
```
651650
git flow feature publish MYFEATURE
652651
```
653652

654-
##### Getting a published feature:
655-
###### Get a feature published by another user.
653+
##### Baixar uma feature publicada:
654+
###### Baixar uma feature publicada por outro usuário.
656655
```
657656
git flow feature pull origin MYFEATURE
658657
```
659658

660-
##### Tracking a origin feature:
661-
###### You can track a feature on origin by using
659+
##### Rastreando a feature na origin:
660+
###### Você consegue rastrear a feature na origin usando:
662661
```
663662
git flow feature track MYFEATURE
664663
```
665664
<hr>
666665

667-
### Make a Release
668-
###### Support preparation of a new production release. Allow for minor bug fixes and preparing meta-data for a release
666+
### Fazer um release
667+
###### Ajustes na preparação de um novo release de produção. Permitir para correção de bugs menores e preparando os metadados para um release.
669668

670-
##### Start a release:
671-
###### To start a release, use the git flow release command. It creates a release branch created from the 'develop' branch. You can optionally supply a [BASE] commit sha-1 hash to start the release from. The commit must be on the 'develop' branch.
669+
##### Iniciar um release:
670+
###### Use o comando git flow, que cria uma branch de release a partir da 'develop'. Opcionalmente você pode fornecer um hash sha-1 de um commit [BASE] para iniciar a release a partir deste. O commit deve estar no branch 'develop'.
672671
```
673672
git flow release start RELEASE [BASE]
674673
```
675-
###### It's wise to publish the release branch after creating it to allow release commits by other developers. Do it similar to feature publishing with the command:
674+
###### É aconselhável publicar a release branch depois de criá-la, para permitir outros commits de desenvolvedores. Faça de maneira similar a publicar uma feature com o comando:
676675
```
677676
git flow release publish RELEASE
678677
```
679-
###### (You can track a remote release with the: ```git flow release track RELEASE``` command)
678+
###### (É possível rastrear uma release remota com: ```git flow release track RELEASE```)
680679

681-
##### Finish up a release:
682-
###### Finishing a release is one of the big steps in git branching. It performs several actions:
683-
###### 1) Merges the release branch back into 'master'
684-
###### 2) Tags the release with its name
685-
###### 3) Back-merges the release into 'develop'
686-
###### 4) Removes the release branch
680+
##### Finalizando a release:
681+
###### Finalizar a release é um dos grandes pontos em branching no git. Isto executa várias ações:
682+
###### 1) Merge da release branch de volta na 'master'
683+
###### 2) Faz as tags da release com seu nome
684+
###### 3) Volta a fundir a release branch na branch 'develop'
685+
###### 4) Apaga a release branch
687686
```
688687
git flow release finish RELEASE
689688
```
690-
###### Don't forget to push your tags with ```git push --tags```
689+
###### Não esqueça de publicar as tags com ```git push --tags```
691690

692691
<hr>
693692

694693
### Hotfixes
695-
###### Hotfixes arise from the necessity to act immediately upon an undesired state of a live production version. May be branched off from the corresponding tag on the master branch that marks the production version.
694+
###### Hotfixes surgiram da necessidade de agir imediatamente sobre um determinado estado de uma versão em produção. Pode ser criado um branch correspondente a partir da tag na master branch que marca a versão em produção.
696695

697-
##### Git flow hotfix start:
698-
###### Like the other git flow commands, a hotfix is started with
696+
##### Iniciar um hotfix:
697+
###### Assim como o comando git flow, um hotfix inicia com:
699698
```
700699
$ git flow hotfix start VERSION [BASENAME]
701700
```
702-
###### The version argument hereby marks the new hotfix release name. Optionally you can specify a basename to start from.
701+
###### O argumento 'version' marca o novo nome da release. Opcionalmente pode-se especificar um basename.
703702

704-
##### Finish a hotfix:
705-
###### By finishing a hotfix it gets merged back into develop and master. Additionally the master merge is tagged with the hotfix version
703+
##### Terminando um hotfix:
704+
###### Ao terminar um hotfix, este é fundido de volta na develop e na master. Adicionalmente é feita uma tag na master com a versão do hotfix.
706705
```
707706
git flow hotfix finish VERSION
708707
```
709708
<hr>
710709

711-
### Commands
710+
### Comandos
712711
<p align="center">
713712
<img alt="Git" src="./Img/git-flow-commands.png" height="270" width="460">
714713
</p>
715714
<hr>
716715

717-
### Git flow schema
716+
### Esquema do Git flow
718717

719718
<p align="center">
720719
<img alt="Git" src="Img/git-flow-commands-without-flow.png">

0 commit comments

Comments
 (0)