PT Assim que a correção é concluída, deve ser feito o merge dela tanto na ramificação main quanto na ramificação develop (ou na ramificação release atual) e a ramificação main deve ser marcada com um número de versão atualizado.
"cria uma ramificação" i Potukara ka taea te whakamaori ki nga kupu Ingarihi e whai ake nei:
PT Assim que a correção é concluída, deve ser feito o merge dela tanto na ramificação main quanto na ramificação develop (ou na ramificação release atual) e a ramificação main deve ser marcada com um número de versão atualizado.
EN As soon as the fix is complete, it should be merged into both main and develop (or the current release branch), and main should be tagged with an updated version number.
Potukara | Ingarihi |
---|---|
correção | fix |
ramificação | branch |
main | main |
develop | develop |
PT Assim como acontece na finalização da ramificação release, é feito o merge da ramificação de hotfix tanto na ramificação main quanto na ramificação develop.
EN Similar to finishing a release branch, a hotfix branch gets merged into both main and develop.
Potukara | Ingarihi |
---|---|
ramificação | branch |
release | release |
main | main |
develop | develop |
PT A ramificação de desenvolvimento padrão. Sempre que você cria um repositório do Git, uma ramificação chamada "main" é criada e passa a ser a ramificação ativa.
EN The default development branch. Whenever you create a git repository, a branch named "main" is created, and becomes the active branch.
Potukara | Ingarihi |
---|---|
ramificação | branch |
padrão | default |
você | you |
repositório | repository |
git | git |
main | main |
ativa | active |
chamada | named |
PT A ramificação de desenvolvimento padrão. Sempre que você cria um repositório do Git, uma ramificação chamada "main" é criada e passa a ser a ramificação ativa.
EN The default development branch. Whenever you create a git repository, a branch named "main" is created, and becomes the active branch.
Potukara | Ingarihi |
---|---|
ramificação | branch |
padrão | default |
você | you |
repositório | repository |
git | git |
main | main |
ativa | active |
chamada | named |
PT Uma vez que a ramificação develop adquiriu recursos suficientes para um lançamento (ou uma data de lançamento predeterminada está se aproximando), você bifurca uma ramificação release a partir da ramificação develop
EN Once develop has acquired enough features for a release (or a predetermined release date is approaching), you fork a release branch off of develop
Potukara | Ingarihi |
---|---|
ramificação | branch |
develop | develop |
adquiriu | acquired |
recursos | features |
ou | or |
aproximando | approaching |
você | you |
PT A primeira etapa serve para complementar a ramificação main padrão com uma ramificação develop. Um jeito simples de alcançar esse resultado é com um desenvolvedor criando uma ramificação develop no local e fazendo o push para o servidor:
EN The first step is to complement the default main with a develop branch. A simple way to do this is for one developer to create an empty develop branch locally and push it to the server:
Potukara | Ingarihi |
---|---|
etapa | step |
ramificação | branch |
main | main |
develop | develop |
desenvolvedor | developer |
push | push |
local | locally |
PT A ideia central por trás do Fluxo de trabalho de ramificação de recursos é que todo desenvolvimento de recursos deve ocorrer em uma ramificação dedicada em vez de na ramificação principal
EN The core idea behind the Feature Branch Workflow is that all feature development should take place in a dedicated branch instead of the main branch
Potukara | Ingarihi |
---|---|
ideia | idea |
ramificação | branch |
recursos | feature |
desenvolvimento | development |
ocorrer | take place |
dedicada | dedicated |
em vez de | instead |
PT Em geral, o desenvolvedor vai especificar sua ramificação de recurso como a ramificação de origem e a ramificação main como a de destino.
EN Typically, the developer will specify their feature branch as the source branch and the main branch as the destination branch.
Potukara | Ingarihi |
---|---|
especificar | specify |
ramificação | branch |
main | main |
destino | destination |
geral | typically |
PT Mary quer fazer o merge do seu recurso na base de código principal, para que a ramificação de origem seja a ramificação de recurso, o repositório de destino seja o repositório público do John e que a ramificação de destino seja a main
EN Mary wants to merge her feature into the main codebase, so the source branch is her feature branch, the destination repository is John’s public repository, and the destination branch is main
Potukara | Ingarihi |
---|---|
mary | mary |
quer | wants |
merge | merge |
seu | her |
ramificação | branch |
repositório | repository |
destino | destination |
público | public |
john | john |
base de código | codebase |
PT Depois que a versão estiver pronta para o lançamento, vai ser feito o merge dela na ramificação main e na ramificação develop e, então, a ramificação release vai ser excluída
EN Once the release is ready to ship, it will get merged it into main and develop, then the release branch will be deleted
Potukara | Ingarihi |
---|---|
pronta | ready |
ramificação | branch |
main | main |
develop | develop |
PT Em geral, o desenvolvedor vai especificar sua ramificação de recurso como a ramificação de origem e a ramificação main como a de destino.
EN Typically, the developer will specify their feature branch as the source branch and the main branch as the destination branch.
Potukara | Ingarihi |
---|---|
especificar | specify |
ramificação | branch |
main | main |
destino | destination |
geral | typically |
PT Mary quer fazer o merge do seu recurso na base de código principal, para que a ramificação de origem seja a ramificação de recurso, o repositório de destino seja o repositório público do John e que a ramificação de destino seja a main
EN Mary wants to merge her feature into the main codebase, so the source branch is her feature branch, the destination repository is John’s public repository, and the destination branch is main
Potukara | Ingarihi |
---|---|
mary | mary |
quer | wants |
merge | merge |
seu | her |
ramificação | branch |
repositório | repository |
destino | destination |
público | public |
john | john |
base de código | codebase |
PT A história do repositório permanece inalterada. Tudo o que você tem é um novo indicador para a ramificação atual: Para começar a trabalhar na nova ramificação, você deve conferir a ramificação que deseja usar.
EN The repository history remains unchanged. All you get is a new pointer to the current branch. To begin working on the new branch, you have to check out the branch you want to use.
Potukara | Ingarihi |
---|---|
história | history |
repositório | repository |
permanece | remains |
ramificação | branch |
começar | begin |
trabalhar | working |
PT Esse comando cria uma ramificação, mas não o alterna para essa ramificação, então seu repositório é parecido ao seguinte:
EN This command creates a branch but does not switch you to that branch, so your repository looks something like this:
Potukara | Ingarihi |
---|---|
comando | command |
ramificação | branch |
repositório | repository |
PT Quando você cria uma ramificação, tudo o que o Git precisa fazer é criar um novo indicador, ele não cria um conjunto totalmente novo de arquivos ou pastas
EN When you create a branch, all Git needs to do is create a new pointer—it doesn’t create a whole new set of files or folders
Potukara | Ingarihi |
---|---|
ramificação | branch |
git | git |
novo | new |
ou | or |
PT O diagrama acima mostra uma solicitação pull que pede para fazer o merge de uma ramificação de recursos na ramificação principal oficial, mas existem muitas outras maneiras de usar solicitações pull.
EN The above diagram shows a pull request that asks to merge a feature branch into the official main branch, but there are many other ways to use pull requests.
Potukara | Ingarihi |
---|---|
diagrama | diagram |
mostra | shows |
pull | pull |
merge | merge |
ramificação | branch |
principal | main |
oficial | official |
mas | but |
PT Adicionar solicitações pull ao Fluxo de trabalho de Gitflow dá aos desenvolvedores um local conveniente para falar sobre uma ramificação de lançamento ou uma ramificação de manutenção enquanto estão trabalhando nela.
EN Adding pull requests to the Gitflow Workflow gives developers a convenient place to talk about a release branch or a maintenance branch while they’re working on it.
Potukara | Ingarihi |
---|---|
adicionar | adding |
solicitações | requests |
pull | pull |
gitflow | gitflow |
desenvolvedores | developers |
conveniente | convenient |
ramificação | branch |
lançamento | release |
ou | or |
manutenção | maintenance |
PT A seguir, um exemplo completo demonstrando um fluxo de ramificação de recurso. Supondo que exista uma configuração de repositório com uma ramificação main.
EN A complete example demonstrating a Feature Branch Flow is as follows. Assuming we have a repo setup with a main branch.
Potukara | Ingarihi |
---|---|
exemplo | example |
demonstrando | demonstrating |
fluxo | flow |
ramificação | branch |
recurso | feature |
configuração | setup |
repositório | repo |
main | main |
PT O diagrama acima mostra uma solicitação pull que pede para fazer o merge de uma ramificação de recursos na ramificação principal oficial, mas existem muitas outras maneiras de usar solicitações pull.
EN The above diagram shows a pull request that asks to merge a feature branch into the official main branch, but there are many other ways to use pull requests.
Potukara | Ingarihi |
---|---|
diagrama | diagram |
mostra | shows |
pull | pull |
merge | merge |
ramificação | branch |
principal | main |
oficial | official |
mas | but |
PT Adicionar solicitações pull ao Fluxo de trabalho de Gitflow dá aos desenvolvedores um local conveniente para falar sobre uma ramificação de lançamento ou uma ramificação de manutenção enquanto estão trabalhando nela.
EN Adding pull requests to the Gitflow Workflow gives developers a convenient place to talk about a release branch or a maintenance branch while they’re working on it.
Potukara | Ingarihi |
---|---|
adicionar | adding |
solicitações | requests |
pull | pull |
gitflow | gitflow |
desenvolvedores | developers |
conveniente | convenient |
ramificação | branch |
lançamento | release |
ou | or |
manutenção | maintenance |
PT Como você está criando uma ramificação para trabalhar em algo novo, toda vez que criar uma nova ramificação (com git branch), você quer ter certeza de conferir (com git checkout) se vai usá-la
EN Because you are creating a branch to work on something new, every time you create a new branch (with git branch), you want to make sure to check it out (with git checkout) if you're going to use it
Potukara | Ingarihi |
---|---|
vez | time |
git | git |
certeza | sure |
checkout | checkout |
se | if |
PT Como você criou somente uma ramificação e fez uma alteração, use o método de ramificação de avanço rápido para mesclar
EN Because you created only one branch and made one change, use the fast-forward branch method to merge
Potukara | Ingarihi |
---|---|
você | you |
ramificação | branch |
alteração | change |
use | use |
método | method |
rápido | fast |
mesclar | merge |
PT Cria a tua conta, é grátis! Cria ou acede a uma conta da Bit2Me. Cria uma conta totalmente gratuita e terás acesso a todas as funcionalidades.
EN Create your account, it's free! Create or access to a Bit2Me account. Creating an account is completely free and you will have access to all the functionalities.
Potukara | Ingarihi |
---|---|
conta | account |
é | is |
ou | or |
acesso | access |
funcionalidades | functionalities |
s | s |
PT Cria a tua conta, é grátis! Cria ou acede a uma conta da Bit2Me. Cria uma conta totalmente gratuita e terás acesso a todas as funcionalidades.
EN Create your account, it's free! Create or access to a Bit2Me account. Creating an account is completely free and you will have access to all the functionalities.
Potukara | Ingarihi |
---|---|
conta | account |
é | is |
ou | or |
acesso | access |
funcionalidades | functionalities |
s | s |
PT Isto significa que você precisa fornecer 4 informações para arquivar uma solicitação pull: o repositório de origem, a ramificação de origem, o repositório de destino e a ramificação de destino.
EN This means that you need to provide 4 pieces of information to file a pull request: the source repository, the source branch, the destination repository, and the destination branch.
Potukara | Ingarihi |
---|---|
você | you |
solicitação | request |
pull | pull |
repositório | repository |
origem | source |
ramificação | branch |
destino | destination |
PT Sob este modelo, os desenvolvedores criam uma ramificação de recurso e retardam o merge com a ramificação de tronco principal até que o recurso esteja completo
EN Under this model, developers create a feature branch and delay merging it to the main trunk branch until the feature is complete
Potukara | Ingarihi |
---|---|
modelo | model |
desenvolvedores | developers |
criam | create |
ramificação | branch |
recurso | feature |
tronco | trunk |
principal | main |
PT Esta ramificação vai conter o histórico completo do projeto, enquanto a ramificação main vai conter uma versão abreviada
EN This branch will contain the complete history of the project, whereas main will contain an abridged version
Potukara | Ingarihi |
---|---|
ramificação | branch |
conter | contain |
histórico | history |
completo | complete |
projeto | project |
enquanto | whereas |
main | main |
PT A ideia central por trás do Fluxo de trabalho de ramificação de recursos é que todo desenvolvimento de recursos deve ocorrer em uma ramificação dedicada em vez de no branch main
EN The core idea behind the Feature Branch Workflow is that all feature development should take place in a dedicated branch instead of the main branch
Potukara | Ingarihi |
---|---|
ideia | idea |
central | core |
recursos | feature |
desenvolvimento | development |
ocorrer | take place |
dedicada | dedicated |
main | main |
em vez de | instead |
PT Quanto mais uma ramificação durar separada da ramificação de produção, maior o risco de conflitos de mesclagem e desafios de implementação. Ramificações de curta duração promovem mesclagens e implementações mais limpas.
EN The longer a branch lives separate from the production branch, the higher the risk for merge conflicts and deployment challenges. Short-lived branches promote cleaner merges and deploys.
Potukara | Ingarihi |
---|---|
ramificação | branch |
separada | separate |
produção | production |
risco | risk |
conflitos | conflicts |
mesclagem | merge |
desafios | challenges |
curta | short |
promovem | promote |
PT Isto significa que você precisa fornecer 4 informações para arquivar uma solicitação pull: o repositório de origem, a ramificação de origem, o repositório de destino e a ramificação de destino.
EN This means that you need to provide 4 pieces of information to file a pull request: the source repository, the source branch, the destination repository, and the destination branch.
Potukara | Ingarihi |
---|---|
você | you |
solicitação | request |
pull | pull |
repositório | repository |
origem | source |
ramificação | branch |
destino | destination |
PT O fluxo de trabalho da ramificação de recursos do Git é focado no modelo de ramificação, o que significa que é uma estrutura orientadora para gerenciar e criar ramificações
EN Git Feature Branch Workflow is branching model focused, meaning that it is a guiding framework for managing and creating branches
Potukara | Ingarihi |
---|---|
ramificação | branch |
recursos | feature |
git | git |
focado | focused |
PT Essa ação verifica uma ramificação chamada new-feature com base na principal, e a marcação -b indica para o Git criar a ramificação, se ainda não existir.
EN This checks out a branch called new-feature based on main, and the -b flag tells Git to create the branch if it doesn’t already exist.
Potukara | Ingarihi |
---|---|
verifica | checks |
ramificação | branch |
chamada | called |
principal | main |
git | git |
existir | exist |
PT Essa ação verifica uma ramificação chamada marys-feature com base na principal, e a marcação -b diz ao Git para criar a ramificação, se ainda não existir
EN This checks out a branch called marys-feature based on main, and the -b flag tells Git to create the branch if it doesn’t already exist
Potukara | Ingarihi |
---|---|
verifica | checks |
ramificação | branch |
chamada | called |
principal | main |
diz | tells |
git | git |
existir | exist |
PT Criar uma nova ramificação chamada . Isso não verifica a nova ramificação.
EN Create a new branch called <branch>. This does not check out the new branch.
Potukara | Ingarihi |
---|---|
criar | create |
ramificação | branch |
chamada | called |
verifica | check |
PT Excluir a ramificação especificada. Esta é uma operação “segura” em que o Git impede que você exclua a ramificação se tiver mudanças não mescladas.
EN Delete the specified branch. This is a “safe” operation in that Git prevents you from deleting the branch if it has unmerged changes.
Potukara | Ingarihi |
---|---|
ramificação | branch |
especificada | specified |
operação | operation |
segura | safe |
git | git |
impede | prevents |
mudanças | changes |
PT Depois que terminar de trabalhar em uma ramificação e tiver feito a mesclagem dela com a base de código principal, você está livre para excluir a ramificação sem perder nenhuma história:
EN Once you’ve finished working on a branch and have merged it into the main code base, you’re free to delete the branch without losing any history:
Potukara | Ingarihi |
---|---|
terminar | finished |
trabalhar | working |
ramificação | branch |
base | base |
código | code |
principal | main |
livre | free |
perder | losing |
história | history |
PT Novo arquivo no BitbucketNovo arquivo no BitbucketA. Ramificação com o novo arquivo: Altere se quiser adicionar um arquivo a uma ramificação diferente. B. Nova área do arquivo: Adicione conteúdo para seu novo arquivo aqui.
EN A. Branch with new file: Change if you want to add file to a different branch. B. New file area: Add content for your new file here.
Potukara | Ingarihi |
---|---|
ramificação | branch |
altere | change |
se | if |
quiser | want |
diferente | different |
área | area |
conteúdo | content |
aqui | here |
b | b |
PT Para um exemplo visual, este diagrama mostra a ramificação principal e a outra ramificação com uma atualização de correção de bug.
EN For a visual example, this diagram shows the main branch and the other branch with a bug fix update.
Potukara | Ingarihi |
---|---|
visual | visual |
diagrama | diagram |
ramificação | branch |
principal | main |
outra | other |
correção | fix |
PT Você vê a linha On branch future-plans? Se você inseriu o git status antes, a linha estava na ramificação principal porque você só tinha uma ramificação principal
EN Notice the On branch future-plans line? If you entered git status previously, the line was on branch main because you only had the one main branch
Potukara | Ingarihi |
---|---|
você | you |
linha | line |
se | if |
git | git |
PT Você pode fazer uma mesclagem de avanço rápido porque tem um caminho linear da ponta da ramificação atual até a ramificação de destino
EN You can do a fast-forward merge because you have a linear path from the current branch tip to the target branch
Potukara | Ingarihi |
---|---|
mesclagem | merge |
rápido | fast |
caminho | path |
linear | linear |
ponta | tip |
ramificação | branch |
atual | current |
destino | target |
PT O argumento -branch permite que você especifique uma ramificação específica para clonar, em vez da ramificação que o HEAD remoto está apontando, em geral, o branch principal
EN The -branch argument lets you specify a specific branch to clone instead of the branch the remote HEAD is pointing to, usually the main branch
Potukara | Ingarihi |
---|---|
argumento | argument |
permite | lets |
você | you |
especifique | specify |
específica | specific |
clonar | clone |
apontando | pointing |
PT "O Sourcetree é mágico. Usar o cliente em vez da linha de comando torna muito fácil passar de ramificação para ramificação e saber o que está acontecendo com a base de código."
EN "Sourcetree is magic. Using the client instead of the command line makes it really easy for me to jump between branches and stay on top of what is happening with the codebase."
Potukara | Ingarihi |
---|---|
mágico | magic |
cliente | client |
comando | command |
torna | makes it |
fácil | easy |
base de código | codebase |
PT O Fluxo de trabalho de Gitflow é semelhante ao Fluxo de trabalho de ramificação de recurso, mas define um modelo estrito de ramificação projetado em torno do lançamento do projeto
EN The Gitflow Workflow is similar to the Feature Branch Workflow, but defines a strict branching model designed around the project release
Potukara | Ingarihi |
---|---|
o | the |
gitflow | gitflow |
é | is |
semelhante | similar |
ramificação | branch |
recurso | feature |
define | defines |
lançamento | release |
estrito | strict |
PT O merge dos recursos em geral é feito na ramificação develop, enquanto o das ramificações de lançamento e hotfix é feito tanto na ramificação develop, quanto na main
EN Features are generally merged into the develop branch, while release and hotfix branches are merged into both develop and main
Potukara | Ingarihi |
---|---|
recursos | features |
é | are |
ramificação | branch |
develop | develop |
lançamento | release |
main | main |
PT Observe que as ramificações de recurso, combinadas com a ramificação de desenvolvimento, são, para todos os efeitos, o Fluxo de trabalho de ramificação de recursos. No entanto, o Gitflow Workflow não para aí.
EN Note that feature branches combined with the develop branch is, for all intents and purposes, the Feature Branch Workflow. But, the Gitflow workflow doesn’t stop there.
Potukara | Ingarihi |
---|---|
observe | note |
ramificação | branch |
desenvolvimento | develop |
gitflow | gitflow |
PT Quando estiver pronta para ser lançada, a ramificação release passa por merge para a ramificação main e é marcada com o número da versão
EN Once it's ready to ship, the release branch gets merged into main and tagged with a version number
Potukara | Ingarihi |
---|---|
pronta | ready |
ramificação | branch |
main | main |
PT As ramificações de hotfix se parecem muito com ramificações release e feature, com a diferença de serem baseadas na ramificação main ao invés da ramificação develop
EN Hotfix branches are a lot like release branches and feature branches except they're based on main instead of develop
Potukara | Ingarihi |
---|---|
release | release |
feature | feature |
serem | are |
main | main |
develop | develop |
PT "O Sourcetree é mágico. Usar o cliente em vez da linha de comando torna muito fácil passar de ramificação para ramificação e saber o que está acontecendo com a base de código."
EN "Sourcetree is magic. Using the client instead of the command line makes it really easy for me to jump between branches and stay on top of what is happening with the codebase."
Potukara | Ingarihi |
---|---|
mágico | magic |
cliente | client |
comando | command |
torna | makes it |
fácil | easy |
base de código | codebase |
PT No pop-up exibido, selecione um Tipo (se estiver usando o Modelo de ramificação), insira um Nome de ramificação e clique em Criar.
EN From the popup that appears, select a Type (if using the Branching model), enter a Branch name and click Create.
Potukara | Ingarihi |
---|---|
exibido | appears |
um | a |
se | if |
o | the |
ramificação | branch |
insira | enter |
nome | name |
PT Fechar ramificação: Selecione se você quiser que o fechamento da ramificação seja automático depois do merge da solicitação pull.
EN Close branch: Select if you want to automatically close the branch when the pull request is merged.
Potukara | Ingarihi |
---|---|
ramificação | branch |
selecione | select |
quiser | want |
automático | automatically |
solicitação | request |
pull | pull |
E whakaatu ana i te 50 o nga whakamaoritanga 50