Skip to content

Commit bc8787e

Browse files
authored
Merge pull request #90 from rickserraglia/master
Finalizando a tradução de parte da seção
2 parents 571ae60 + 7a1b191 commit bc8787e

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

book/02-git-basics/sections/remotes.asc

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -106,25 +106,25 @@ Se o `branch` atual é configurando para rastrear um `branch` remoto (veja a pr
106106
[[r_pushing_remotes]]
107107
==== Pushing to Your Remotes
108108

109-
When you have your project at a point that you want to share, you have to push it upstream.
110-
The command for this is simple: `git push [remote-name] [branch-name]`.(((git commands, push)))
111-
If you want to push your master branch to your `origin` server (again, cloning generally sets up both of those names for you automatically), then you can run this to push any commits you've done back up to the server:
109+
Quando você tem seu projeto em um ponto que deseja compartilhar, é necessário enviá-lo para o servidor remoto.
110+
O comando para isso é simples: `git push [remote-name] [branch-name]`.(((Comandos git, push)))
111+
Se você quiser enviar sua ramificacão (branch) master para o servidor `origin` (novamente, a clonagem geralmente configura ambos os nomes para você automaticamente), então você pode executar isso para enviar quaisquer commits feitos para o servidor:
112112

113113
[source,console]
114114
----
115115
$ git push origin master
116116
----
117117

118-
This command works only if you cloned from a server to which you have write access and if nobody has pushed in the meantime.
119-
If you and someone else clone at the same time and they push upstream and then you push upstream, your push will rightly be rejected.
120-
You'll have to fetch their work first and incorporate it into yours before you'll be allowed to push.
121-
See <<ch03-git-branching#ch03-git-branching>> for more detailed information on how to push to remote servers.
118+
Este comando funciona apenas se você clonou de um servidor ao qual você tem acesso de escrita (write-access) e se ninguém mais utilizou o comando push nesse meio-tempo.
119+
Se você e outra pessoa clonarem o repositório ao mesmo tempo e ela utilizar o comando push e, em seguida, você tentar utilizar, seu envio será rejeitado.
120+
Primeiro você terá que atualizar localmente, incorporando o trabalho dela ao seu, só assim você poderá utilizar o comando push.
121+
Veja <<ch03-git-branching#ch03-git-branching>> para informações mais detalhadas sobre como enviar para servidores remotos.
122122

123123
[[r_inspecting_remote]]
124-
==== Inspecting a Remote
124+
==== Inspecionando o Servidor Remoto
125125

126-
If you want to see more information about a particular remote, you can use the `git remote show [remote-name]` command.(((git commands, remote)))
127-
If you run this command with a particular shortname, such as `origin`, you get something like this:
126+
Se você quiser ver mais informações sobre um servidor remoto em particular, você pode usar o comando `git remote show [nome-remoto]`.(((git commands, remote)))
127+
Ao executar este comando com um nome abreviado específico, como `origin`, obterá algo assim:
128128

129129
[source,console]
130130
----
@@ -142,12 +142,12 @@ $ git remote show origin
142142
master pushes to master (up to date)
143143
----
144144

145-
It lists the URL for the remote repository as well as the tracking branch information.
146-
The command helpfully tells you that if you're on the master branch and you run `git pull`, it will automatically merge in the master branch on the remote after it fetches all the remote references.
147-
It also lists all the remote references it has pulled down.
145+
Ele lista a URL para o repositório remoto, bem como as informações de rastreamento do branch.
146+
O comando, de forma útil, comunica que se você estiver no branch master e executar `git pull`, ele irá mesclar (merge) automaticamente no branch master do servidor após buscar (fetch) todas as referências remotas.
147+
Ele também lista todas as referências remotas recebidas.
148148

149-
That is a simple example you're likely to encounter.
150-
When you're using Git more heavily, however, you may see much more information from `git remote show`:
149+
Esse é um exemplo simples que você provavelmente encontrará.
150+
Quando você usa o Git mais intensamente, no entanto, pode ver muito mais informações com `git remote show`:
151151

152152
[source,console]
153153
----
@@ -173,13 +173,13 @@ $ git remote show origin
173173
master pushes to master (up to date)
174174
----
175175

176-
This command shows which branch is automatically pushed to when you run `git push` while on certain branches.
177-
It also shows you which remote branches on the server you don't yet have, which remote branches you have that have been removed from the server, and multiple local branches that are able to merge automatically with their remote-tracking branch when you run `git pull`.
176+
Este comando mostra para qual ramificação (branch) é enviada automaticamente quando você executa `git push` enquanto em certas ramificações.
177+
Ele também mostra quais branches remotos do servidor você ainda não tem, quais você tem que foram removidos do servidor e várias branches locais que são capazes de se fundir automaticamente com seu branch de rastreamento remoto quando você executa `git pull`.
178178

179-
==== Removing and Renaming Remotes
179+
==== Removendo e Renomeando Remotes
180180

181-
You can run `git remote rename` to change a remote's shortname.(((git commands, remote)))
182-
For instance, if you want to rename `pb` to `paul`, you can do so with `git remote rename`:
181+
Você pode utilizar o `git remote rename` para alterar o nome curto de servidores remotos.(((git commands, remote)))
182+
Por exemplo, se você deseja renomear `pb` para` paul`, você pode fazer isso com `git remote rename`:
183183

184184
[source,console]
185185
----
@@ -189,10 +189,10 @@ origin
189189
paul
190190
----
191191

192-
It's worth mentioning that this changes all your remote-tracking branch names, too.
193-
What used to be referenced at `pb/master` is now at `paul/master`.
192+
Vale a pena mencionar que isso muda todos os nomes de ramificações de rastreamento remoto também.
193+
O que costumava ser referenciado em `pb/master` agora está em `paul/master`.
194194

195-
If you want to remove a remote for some reason – you've moved the server or are no longer using a particular mirror, or perhaps a contributor isn't contributing anymore – you can either use `git remote remove` or `git remote rm`:
195+
Se você quiser remover um servidor remoto por algum motivo - e você anteriormente moveu o servidor ou não está mais usando um em particular, ou talvez um contribuidor não esteja mais contribuindo - você pode usar `git remote remove` ou `git remote rm`:
196196

197197
[source,console]
198198
----

0 commit comments

Comments
 (0)