From 6e9606c3d44f764c9c63e359eb41d4f28fd68bcf Mon Sep 17 00:00:00 2001 From: Henrique Serraglia <91272060+rickserraglia@users.noreply.github.com> Date: Thu, 7 Oct 2021 17:15:21 -0300 Subject: [PATCH 1/2] =?UTF-8?q?Finalizando=20tradu=C3=A7=C3=A3o=20da=20se?= =?UTF-8?q?=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Finalizando a tradução de parte da seção que ainda não estava traduzida. --- book/02-git-basics/sections/remotes.asc | 46 ++++++++++++------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/book/02-git-basics/sections/remotes.asc b/book/02-git-basics/sections/remotes.asc index d05d263..63b6b5b 100644 --- a/book/02-git-basics/sections/remotes.asc +++ b/book/02-git-basics/sections/remotes.asc @@ -106,25 +106,25 @@ Se o `branch` atual é configurando para rastrear um `branch` remoto (veja a pr [[r_pushing_remotes]] ==== Pushing to Your Remotes -When you have your project at a point that you want to share, you have to push it upstream. -The command for this is simple: `git push [remote-name] [branch-name]`.(((git commands, push))) -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: +Quando você tem seu projeto em um ponto que deseja compartilhar, é necessário enviá-lo para o servidor remoto. +O comando para isso é simples: `git push [remote-name] [branch-name]`.(((Comandos git, push))) +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: [source,console] ---- $ git push origin master ---- -This command works only if you cloned from a server to which you have write access and if nobody has pushed in the meantime. -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. -You'll have to fetch their work first and incorporate it into yours before you'll be allowed to push. -See <> for more detailed information on how to push to remote servers. +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. +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. +Primeiro você terá que atualizar localmente, incorporando o trabalho dela ao seu, só assim você poderá utilizar o comando push. +Veja <> para informações mais detalhadas sobre como enviar para servidores remotos. [[r_inspecting_remote]] -==== Inspecting a Remote +==== Inspecionando o Servidor Remoto -If you want to see more information about a particular remote, you can use the `git remote show [remote-name]` command.(((git commands, remote))) -If you run this command with a particular shortname, such as `origin`, you get something like this: +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))) +Se você executar este comando com um nome abreviado específico, como `origin`, obterá algo assim: [source,console] ---- @@ -142,12 +142,12 @@ $ git remote show origin master pushes to master (up to date) ---- -It lists the URL for the remote repository as well as the tracking branch information. -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. -It also lists all the remote references it has pulled down. +Ele lista a URL para o repositório remoto, bem como as informações de rastreamento do branch. +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. +Ele também lista todas as referências remotas recebidas. -That is a simple example you're likely to encounter. -When you're using Git more heavily, however, you may see much more information from `git remote show`: +Esse é um exemplo simples que você provavelmente encontrará. +Quando você usa o Git mais intensamente, no entanto, pode ver muito mais informações com `git remote show`: [source,console] ---- @@ -173,13 +173,13 @@ $ git remote show origin master pushes to master (up to date) ---- -This command shows which branch is automatically pushed to when you run `git push` while on certain branches. -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`. +Este comando mostra para qual ramificação (branch) é enviada automaticamente quando você executa `git push` enquanto em certas ramificações. +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`. -==== Removing and Renaming Remotes +==== Removendo e Renomeando Remotes -You can run `git remote rename` to change a remote's shortname.(((git commands, remote))) -For instance, if you want to rename `pb` to `paul`, you can do so with `git remote rename`: +Você pode utilizar o `git remote rename` para alterar o nome curto de servidores remotos.(((git commands, remote))) +Por exemplo, se você deseja renomear `pb` para` paul`, você pode fazer isso com `git remote rename`: [source,console] ---- @@ -189,10 +189,10 @@ origin paul ---- -It's worth mentioning that this changes all your remote-tracking branch names, too. -What used to be referenced at `pb/master` is now at `paul/master`. +Vale a pena mencionar que isso muda todos os nomes de ramificações de rastreamento remoto também. +O que costumava ser referenciado em `pb/master` agora está em `paul/master`. -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`: +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`: [source,console] ---- From 7a1b191b21a4396ed231a73b96c1743409dc6024 Mon Sep 17 00:00:00 2001 From: Henrique Serraglia <91272060+rickserraglia@users.noreply.github.com> Date: Thu, 7 Oct 2021 17:17:06 -0300 Subject: [PATCH 2/2] Tirando termo repetivo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tirei uma repetição após terminar de traduzir parte da seção --- book/02-git-basics/sections/remotes.asc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/02-git-basics/sections/remotes.asc b/book/02-git-basics/sections/remotes.asc index 63b6b5b..e988aac 100644 --- a/book/02-git-basics/sections/remotes.asc +++ b/book/02-git-basics/sections/remotes.asc @@ -124,7 +124,7 @@ Veja <> para informações mais detalhada ==== Inspecionando o Servidor Remoto 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))) -Se você executar este comando com um nome abreviado específico, como `origin`, obterá algo assim: +Ao executar este comando com um nome abreviado específico, como `origin`, obterá algo assim: [source,console] ----