Skip to content

Commit c26d066

Browse files
djalmaoliveiraschacon
authored andcommitted
12_, 12a_ done
Signed-off-by: Scott Chacon <schacon@gmail.com>
1 parent 6ca28d7 commit c26d066

File tree

3 files changed

+61
-58
lines changed

3 files changed

+61
-58
lines changed

text/11_Distributed_Workflows_Clone_Fetch_Push/0_ Distributed_Workflows_Clone_Fetch_Push.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ simples para publicar uma série de patch de um trabalho em progresso, e é um
226226
compromisso aceitável contanto que você avise os outros desenvolvedores que é
227227
dessa forma que pretende gerenciar o branch.
228228

229-
Também é possível para um push falhar desta forma quando outras pessoas tem o
229+
Desta forma também é possível para um push falhar quando outras pessoas tem o
230230
direito de enviar para o mesmo repositório. Nesse caso, a solução correta para
231231
tentar re-enviar depois da primeira atualização de seu trabalho: qualquer um
232232
pull, ou um fetch seguido por um rebase; veja o

text/12_Git_Tag/0_ Git_Tag.markdown

100644100755
Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,54 @@
1-
## Git Tag ##
1+
## Tags no Git ##
22

3-
### Lightweight Tags ###
3+
### Tags "Peso-Leve" ###
44

5-
We can create a tag to refer to a particular commit by running linkgit:git-tag[1]
6-
with no arguments.
5+
Nós podemos criar uma tag para referenciar um commit particular executando
6+
linkgit:git-tag[1] sem nenhum argumento.
77

88
$ git tag stable-1 1b2e1d63ff
9-
10-
After that, we can use stable-1 to refer to the commit 1b2e1d63ff.
119

12-
This creates a "lightweight" tag, basically a branch that never moves.
13-
If you would also like to include a comment with the tag,
14-
and possibly sign it cryptographically, then we can create a *tag object* instead.
10+
Depois disso, nós podemos usar a tag 'stable-1' para referenciar o commit 1b2e1d63ff.
11+
12+
Isso cria uma tag "peso-leve", basicamente um branch que nunca se altera.
13+
Se você também gostaria de incluir um comentário com a tag, e possivelmente
14+
assinar criptograficamente, então em vez disso nós podemos criar um *tag object* .
1515

1616
### Tag Objects ###
1717

18-
If one of **-a**, **-s**, or **-u <key-id>** is passed, the command creates a tag object,
19-
and requires the tag message. Unless -m <msg> or -F <file> is given, an editor
20-
is started for the user to type in the tag message.
18+
Se um dos **-a**, **-s**, ou **-u <key-id>** é passado, o comando cria uma tag
19+
object, e solicita uma mensagem da tag. A não ser que -m <msg> ou -F <arquivo>
20+
seja dado, um editor é iniciado para o usuário digitar a mensagem da tag.
2121

22-
When this happens, a new object is added to the Git object database and the
23-
tag ref points to that _tag object_, rather than the commit itself. The strength
24-
of this is that you can sign the tag, so you can verify that it is the correct
25-
commit later. You can create a tag object like this:
22+
Quando isso acontece, um objeto é adicionado para o banco de dados de objeto
23+
Git e a tag ref aponta para esse _tag object_, em vez realizar um commit dele.
24+
A força disso é que você pode assinar a tag, então você pode verificar que
25+
este é o último commit correto.
2626

2727
$ git tag -a stable-1 1b2e1d63ff
28-
29-
It is actually possible to tag any object, but tagging commit objects is the
30-
most common. (In the Linux kernel source, the first tag object
31-
references a tree, rather than a commit)
3228

33-
### Signed Tags ###
29+
Na verdade é possível adicionar um tag em qualquer objeto, mas é mais comum
30+
colocar tags em objetos do tipo commit. (No código fonte do kernel do Linux, a
31+
primeira tag referencia uma árvore, em vez de um commit)
3432

35-
If you have a GPG key setup, you can create signed tags fairly easily. First,
36-
you will probably want to setup your key id in your _.git/config_ or _~.gitconfig_
37-
file.
33+
### Tags Assinadas ###
34+
35+
Se você tem uma chave GPG configurada, você pode criar tags assinadas mais
36+
facilmente. Primeiro, provavelmente irá querer configurar o id de sua chave no
37+
seu arquivo _.git/condig_ ou _~.gitconfig_
3838

3939
[user]
4040
signingkey = <gpg-key-id>
4141
42-
You can also set that with
42+
Você também pode configurá-lo com
4343

4444
$ git config (--global) user.signingkey <gpg-key-id>
4545

46-
Now you can create a signed tag simply by replacing the **-a** with a **-s**.
46+
Agora você pode criar uma tag assinada através da substituição do **-a**
47+
pelo **-s**.
4748

4849
$ git tag -s stable-1 1b2e1d63ff
49-
50-
If you don't have your GPG key in your config file, you can accomplish the same
51-
thing this way:
50+
51+
Se você não tem sua chave GPG no seu arquivo de configuração, você pode
52+
realizar a mesmo coisa dessa forma:
5253

5354
$ git tag -u <gpg-key-id> stable-1 1b2e1d63ff

text/12a_Ignoring_Files/0_Ignoring_Files.markdown

100644100755
Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,39 @@
1-
## Ignoring files ##
1+
## Ignorando Arquivos ##
22

3-
A project will often generate files that you do 'not' want to track with git.
4-
This typically includes files generated by a build process or temporary
5-
backup files made by your editor. Of course, 'not' tracking files with git
6-
is just a matter of 'not' calling "`git-add`" on them. But it quickly becomes
7-
annoying to have these untracked files lying around; e.g. they make
8-
"`git add .`" and "`git commit -a`" practically useless, and they keep
9-
showing up in the output of "`git status`".
3+
Um projeto frequentemente irá gerar arquivos que você 'não' quer gerenciar com
4+
o git.
5+
Isso tipicamente inclui arquivos gerados por um processo de construção ou
6+
arquivos de backup temporário feitos pelo seu editor. É claro, 'não' gerenciar
7+
arquivos com o git é apenas uma questão de 'não' chamar "'git-add'" nele. Mas
8+
isso rapidamente torna-se irritante ter esses arquivos não selecionados
9+
espalhados por ai; eles fazem o "'git add .'" e "'git commit -a'" praticamente
10+
inúteis, e eles permanecem sendo visualizados pelo "'git status'".
1011

11-
You can tell git to ignore certain files by creating a file called .gitignore
12-
in the top level of your working directory, with contents such as:
12+
Você pode dizer ao git para ignorar certos arquivos através da criação do
13+
arquivo chamado .gitignore na raiz do seu diretório de trabalho, como por exemplo:
1314

14-
# Lines starting with '#' are considered comments.
15-
# Ignore any file named foo.txt.
15+
# Linhas que iniciam com '#' são considerados comentários
16+
# Ignora qualquer arquivo chamado foo.txt.
1617
foo.txt
17-
# Ignore (generated) html files,
18+
# Ignora arquivos html (gerados),
1819
*.html
19-
# except foo.html which is maintained by hand.
20+
# com exceção de foo.html que é mantido manualmente.
2021
!foo.html
21-
# Ignore objects and archives.
22+
# Ignora objetos e arquivos históricos.
2223
*.[oa]
2324

24-
See linkgit:gitignore[5] for a detailed explanation of the syntax. You can
25-
also place .gitignore files in other directories in your working tree, and they
26-
will apply to those directories and their subdirectories. The `.gitignore`
27-
files can be added to your repository like any other files
28-
(just run `git add .gitignore` and `git commit`, as usual), which is convenient when the exclude
29-
patterns (such as patterns matching build output files) would also make sense
30-
for other users who clone your repository.
25+
Veja linkgit:gitignore[5] para uma detalhada explicação da sintaxe. Você também
26+
pode colocar arquivos .gitignore em outros diretórios na sua árvore de trabalho e
27+
eles se aplicarão a esses diretórios e subdiretórios. Os arquivos `.gitignore`
28+
podem ser adicionados em seu repositório como todos outros arquivos (só execute
29+
`git add .gitignore` e `git commit`, como sempre) que é conveniente quando os
30+
padrões de exclusão (por exemplo os padrões que casam com arquivos construidos)
31+
também farão sentido para outros usuários que clonam seu repositório.
3132

32-
If you wish the exclude patterns to affect only certain repositories
33-
(instead of every repository for a given project), you may instead put
34-
them in a file in your repository named .git/info/exclude, or in any file
35-
specified by the `core.excludesfile` configuration variable. Some git
36-
commands can also take exclude patterns directly on the command line.
37-
See linkgit:gitignore[5] for the details.
33+
Se você escolhe padrões de exclusão para afetar somente certos repositórios (
34+
ao invés de cada repositório para um dado projeto), você pode por exemplo
35+
colocá-los em um arquivo em seu repositório chamado .git/info/exclude, ou em
36+
qualquer arquivo especificado pela variável `core.excludesfile`. Alguns
37+
comandos git também fornecem padrões de exclusão diretamente na linha de
38+
comando.
39+
Veja linkgit:gitignore[5] para mais detalhes.

0 commit comments

Comments
 (0)