1
- ## The Git Index ##
1
+ ## O Index do Git ##
2
2
3
- The Git index is used as a staging area between your working directory
4
- and your repository. You can use the index to build up a set of changes
5
- that you want to commit together. When you create a commit, what is committed
6
- is what is currently in the index, not what is in your working directory.
3
+ O index do Git é usado como uma área de preparação entre o seu diretório de
4
+ trabalho e o seu repositório. Você pode usar o index para contruir um conjunto
5
+ de modificações que você quer levar para o próximo commit juntos. Quando você
6
+ cria um commit, o que é commitado é o que está no index atualmente, não o que
7
+ está no seu diretório de trabalho.
7
8
8
- ### Looking at the Index ###
9
+ ### Visualizando o Index ###
9
10
10
- The easiest way to see what is in the index is with the linkgit: git-status [ 1]
11
- command. When you run git status, you can see which files are staged
12
- (currently in your index), which are modified but not yet staged, and which
13
- are completely untracked.
11
+ A forma mais fácil para ver o que está no index é com o comando
12
+ linkgit: git-status [ 1] . Quando você roda o git status, você pode ver quais
13
+ arquivos estão preparados para o próximo commit (atualmente no seu index),
14
+ quais estão modificados mas não ainda não preparados, e quais estão
15
+ completamente sem nenhuma preparação.
14
16
15
17
$>git status
16
18
# On branch master
@@ -34,11 +36,11 @@ are completely untracked.
34
36
# blametree-init
35
37
# git-gui/git-citool
36
38
37
- If you blow the index away entirely, you generally haven't lost any
38
- information as long as you have the name of the tree that it described .
39
+ Se você descartar o index completamente, você em geral não perde qualquer
40
+ informação contanto que você tenha o nome da tree que ele descreveu .
39
41
40
- And with that, you should have a pretty good understanding of the basics of
41
- what Git is doing behind the scenes, and why it is a bit different than most
42
- other SCM systems. Don't worry if you don't totally understand it all right
43
- now; we'll revisit all of these topics in the next sections. Now we're ready
44
- to move on to installing, configuring and using Git.
42
+ E com isso, você deveria ter um bom entendimento das coisas básicas que o Git
43
+ faz por traz da cena, e porque ele é um pouco direfente da maioria dos outros
44
+ sistemas SCM. Não se preocupe se você não entendeu completamente tudo até
45
+ agora; iremos revisar todos esses tópicos nas próximas seções. Agora estamos
46
+ prontos para ir a instalação, configuração e uso do Git.
0 commit comments