You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: book/03-git-branching/sections/remote-branches.asc
+1-8Lines changed: 1 addition & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ image::images/remote-branches-5.png[Remote tracking branch for `teamone/master`.
62
62
(((pushing)))
63
63
Quando você deseja compartilhar um branch com o mundo, você precisa transferi-lo para um servidor remoto ao qual você tenha acesso de gravação.
64
64
Seus branches locais não são sincronizados automaticamente com os branches remotos para os quais você escreve - você tem que empurrar explicitamente os branches que deseja compartilhar.
65
-
Dessa forma, você pode usar branches privados para o trabalho que não deseja compartilhar e fazer o push apenas dos brnaches de tópicos nos quais deseja colaborar.
65
+
Dessa forma, você pode usar branches privados para o trabalho que não deseja compartilhar e fazer o push apenas dos branches de tópicos nos quais deseja colaborar.
66
66
67
67
Se você tem um branch chamado `serverfix` que deseja trabalhar com outros, pode enviá-lo da mesma forma que fez o push do primeiro branch.
While the `git fetch` command will fetch down all the changes on the server that you don't have yet, it will not modify your working directory at all.
215
-
It will simply get the data for you and let you merge it yourself.
216
-
However, there is a command called `git pull` which is essentially a `git fetch` immediately followed by a `git merge` in most cases.
217
-
If you have a tracking branch set up as demonstrated in the last section, either by explicitly setting it or by having it created for you by the `clone` or `checkout` commands, `git pull` will look up what server and branch your current branch is tracking, fetch from that server and then try to merge in that remote branch.
218
-
219
-
Generally it's better to simply use the `fetch` and `merge` commands explicitly as the magic of `git pull` can often be confusing.
220
-
221
214
Embora o comando `git fetch` baixe todas as alterações no servidor que você ainda não tem, ele não modificará seu diretório de trabalho.
222
215
Ele simplesmente obterá os dados para você e permitirá que você mesmo os mescle.
223
216
No entanto, existe um comando chamado `git pull` que é essencialmente um `git fetch` seguido imediatamente por um `git merge` na maioria dos casos.
Copy file name to clipboardExpand all lines: book/03-git-branching/sections/workflows.asc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ Agora, digamos que você decida que prefere a segunda solução para o seu probl
54
54
Você pode descartar o branch `iss91` original (perdendo commits `C5` e `C6`) e mesclar os outros dois.
55
55
Seu histórico será assim:
56
56
57
-
.Histório após mesclar `dumbidea` and `iss91v2`
57
+
.Histórico após mesclar `dumbidea` and `iss91v2`
58
58
image::images/topic-branches-2.png[History after merging `dumbidea` and `iss91v2`.]
59
59
60
60
Iremos entrar em mais detalhes sobre os vários fluxos de trabalho possíveis para seu projeto Git em <<ch05-distributed-git#ch05-distributed-git>>, portanto, antes de decidir qual esquema de ramificação seu próximo projeto usará, certifique-se de ler esse capítulo.
0 commit comments