Skip to content
This repository has been archived by the owner on May 2, 2019. It is now read-only.

Commit

Permalink
[es-es] Section 2.1 translated
Browse files Browse the repository at this point in the history
  • Loading branch information
unindented committed Aug 31, 2009
1 parent 43e41b2 commit 0543969
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 15 deletions.
54 changes: 40 additions & 14 deletions es-es/02-git-basics/01-chapter2.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,71 @@

> Git Basics
Si sólo puedes leer un capítulo para empezar a trabajar con Git, es éste. Este capítulo cubre todos los comandos básicos que necesitas para hacer la mayoría de las cosas a las que vas a dedicar tu tiempo en Git. Al final del capítulo, deberías ser capaz de configurar e inicializar un repositorio, comenzar y detener el seguimiento (tracking) de archivos, y preparar (preparar) y confirmar (commit) cambios. También te enseñaremos a configurar Git para que ignore ciertos archivos y patrones, cómo deshacer errores rápida y fácilmente, cómo navegar por la historia de tu proyecto y ver cambios entre confirmaciones (commits), y como mandar (push) y recibir (pull) de repositorios remotos.
Si sólo puedes leer un capítulo para empezar a trabajar con Git, es éste. Este capítulo cubre todos los comandos básicos que necesitas para hacer la mayoría de las cosas a las que vas a dedicar tu tiempo en Git. Al final del capítulo, deberías ser capaz de configurar e inicializar un repositorio, comenzar y detener el seguimiento de archivos, y preparar (stage) y confirmar (commit) cambios. También te enseñaremos a configurar Git para que ignore ciertos archivos y patrones, cómo deshacer errores rápida y fácilmente, cómo navegar por la historia de tu proyecto y ver cambios entre confirmaciones, y como enviar (push) y recibir (pull) de repositorios remotos.

> If you can read only one chapter to get going with Git, this is it. This chapter covers every basic command you need to do the vast majority of the things you’ll eventually spend your time doing with Git. By the end of the chapter, you should be able to configure and initialize a repository, begin and stop tracking files, and stage and commit changes. We’ll also show you how to set up Git to ignore certain files and file patterns, how to undo mistakes quickly and easily, how to browse the history of your project and view changes between commits, and how to push and pull from remote repositories.
## Getting a Git Repository ##
## Obteniendo un repositorio Git ##

You can get a Git project using two main approaches. The first takes an existing project or directory and imports it into Git. The second clones an existing Git repository from another server.
> Getting a Git Repository
### Initializing a Repository in an Existing Directory ###
Puedes obtener un proyecto Git de dos maneras. La primera toma un proyecto o directorio existente y lo importa en Git. La segunda clona un repositorio Git existente desde otro servidor.

If you’re starting to track an existing project in Git, you need to go to the project’s directory and type
> You can get a Git project using two main approaches. The first takes an existing project or directory and imports it into Git. The second clones an existing Git repository from another server.
### Inicializando un repositorio en un directorio existente ###

> Initializing a Repository in an Existing Directory
Si estás empezando el seguimiento en Git de un proyecto existente, ve al directorio del proyecto y escribe:

> If you’re starting to track an existing project in Git, you need to go to the project’s directory and type
$ git init

This creates a new subdirectory named .git that contains all of your necessary repository filesa Git repository skeleton. At this point, nothing in your project is tracked yet. (See Chapter 9 for more information about exactly what files are contained in the `.git` directory you just created.)
Esto crea un nuevo subdirectorio llamado .git que contiene todos los archivos necesarios del repositorioun esqueleto del repositorio Git. Todavía no hay nada en tu proyecto que esté bajo seguimiento. (Véase el Capítulo 9 para obtener más información sobre qué archivos están contenidos en el directorio `.git` que acabas de crear.)

If you want to start version-controlling existing files (as opposed to an empty directory), you should probably begin tracking those files and do an initial commit. You can accomplish that with a few git add commands that specify the files you want to track, followed by a commit:
> This creates a new subdirectory named .git that contains all of your necessary repository files — a Git repository skeleton. At this point, nothing in your project is tracked yet. (See Chapter 9 for more information about exactly what files are contained in the `.git` directory you just created.)
Si deseas empezar a controlar versiones de archivos existentes (a diferencia de un directorio vacío), probablemente deberías comenzar el seguimiento de esos archivos y hacer una confirmación inicial. Puedes conseguirlo con unos pocos comandos `git add` para especificar qué archivos quieres controlar, seguidos de un `commit` para confirmar los cambios:

> If you want to start version-controlling existing files (as opposed to an empty directory), you should probably begin tracking those files and do an initial commit. You can accomplish that with a few git add commands that specify the files you want to track, followed by a commit:
$ git add *.c
$ git add README
$ git commit –m 'initial project version'

We’ll go over what these commands do in just a minute. At this point, you have a Git repository with tracked files and an initial commit.
Veremos lo que hacen estos comandos dentro de un minuto. En este momento tienes un repositorio Git con archivos bajo seguimiento, y una confirmación inicial.

> We’ll go over what these commands do in just a minute. At this point, you have a Git repository with tracked files and an initial commit.
### Cloning an Existing Repository ###
### Clonando un repositorio existente ###

If you want to get a copy of an existing Git repository — for example, a project you’d like to contribute to — the command you need is git clone. If you’re familiar with other VCS systems such as Subversion, you’ll notice that the command is clone and not checkout. This is an important distinction — Git receives a copy of nearly all data that the server has. Every version of every file for the history of the project is pulled down when you run `git clone`. In fact, if your server disk gets corrupted, you can use any of the clones on any client to set the server back to the state it was in when it was cloned (you may lose some server-side hooks and such, but all the versioned data would be there—see Chapter 4 for more details).
> Cloning an Existing Repository
You clone a repository with `git clone [url]`. For example, if you want to clone the Ruby Git library called Grit, you can do so like this:
Si deseas obtener una copia de un repositorio Git existente - por ejemplo, un proyecto en el que te gustaría contribuir - el comando que necesitas es `git clone`. Si estás familizarizado con otros VCSs como Subversion, verás que el comando es `clone` y no `checkout`. Es una distinción importante - Git recibe una copia de casi todos los datos que tiene el servidor. Cada versión de cada archivo de la historia del proyecto es descargado cuando ejecutas `git clone`. De hecho, si el disco de tu servidor se corrompe, puedes usar cualquiera de los clones en cualquiera de los clientes para devolver al servidor al estado en el que estaba cuando fue clonado (puede que pierdas algunos ganchos (hooks) del lado del servidor y demás, pero toda la información versionada estaría ahí - véase el Capítulo 4 para más detalles).

> If you want to get a copy of an existing Git repository — for example, a project you’d like to contribute to — the command you need is git clone. If you’re familiar with other VCS systems such as Subversion, you’ll notice that the command is clone and not checkout. This is an important distinction — Git receives a copy of nearly all data that the server has. Every version of every file for the history of the project is pulled down when you run `git clone`. In fact, if your server disk gets corrupted, you can use any of the clones on any client to set the server back to the state it was in when it was cloned (you may lose some server-side hooks and such, but all the versioned data would be there—see Chapter 4 for more details).
Puedes clonar un repositorio con `git clone [url]`. Por ejemplo, si quieres clonar la librería Ruby llamada Grit, harías algo así:

> You clone a repository with `git clone [url]`. For example, if you want to clone the Ruby Git library called Grit, you can do so like this:
$ git clone git://github.com/schacon/grit.git

That creates a directory named "grit", initializes a `.git` directory inside it, pulls down all the data for that repository, and checks out a working copy of the latest version. If you go into the new `grit` directory, you’ll see the project files in there, ready to be worked on or used. If you want to clone the repository into a directory named something other than grit, you can specify that as the next command-line option:
Esto crea un directorio llamado grit, inicializa un directorio `.git` en su interior, descarga toda la información de ese repositorio, y saca una copia de trabajo de la última versión. Si te metes en el nuevo directorio `grit`, verás que están los archivos del proyecto, listos para ser utilizados. Si quieres clonar el repositorio a un directorio con otro nombre que no sea grit, puedes especificarlo con la siguiente opción de línea de comandos:

> That creates a directory named "grit", initializes a `.git` directory inside it, pulls down all the data for that repository, and checks out a working copy of the latest version. If you go into the new `grit` directory, you’ll see the project files in there, ready to be worked on or used. If you want to clone the repository into a directory named something other than grit, you can specify that as the next command-line option:
$ git clone git://github.com/schacon/grit.git mygrit

That command does the same thing as the previous one, but the target directory is called mygrit.
Ese comando hace lo mismo que el anterior, pero el directorio de destino se llamará mygrit.

> That command does the same thing as the previous one, but the target directory is called mygrit.
Git te permite usar distintos protocolos de transferencia. El ejemplo anterior usa el protocolo `git://`, pero también te puedes encontrar con `http(s)://` o `user@server:/path.git`, que utilizan el protocolo de transferencia SSH. En el Capítulo 4 se introducirán todas las opciones disponibles a la hora de configurar el acceso a tu repositorio Git, y las ventajas e inconvenientes de cada una.

Git has a number of different transfer protocols you can use. The previous example uses the `git://` protocol, but you may also see `http(s)://` or `user@server:/path.git`, which uses the SSH transfer protocol. Chapter 4 will introduce all of the available options the server can set up to access your Git repository and the pros and cons of each.
> Git has a number of different transfer protocols you can use. The previous example uses the `git://` protocol, but you may also see `http(s)://` or `user@server:/path.git`, which uses the SSH transfer protocol. Chapter 4 will introduce all of the available options the server can set up to access your Git repository and the pros and cons of each.
## Recording Changes to the Repository ##

Expand Down
4 changes: 3 additions & 1 deletion es-es/NOTES
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
- Commit/Committed: Lo traduzco como *confirmar*/*confirmado*, pero pongo entre () el término original.
- Diff: Lo traduzco como *diferencia*.
- Fork: Lo traduzco como *bifurcación*, pero pongo entre () el término original.
- Hook: Lo traduzco como *gancho* a regañadientes, pongo entre () el término original.
- Kernel: La traducción habitual es *núcleo*, así que la usaré.
- Manpage: Lo traduzco como *página del manual*, pero pongo entre () el término original.
- Merge: Lo traduzco como *unión*, pero pongo entre () el término original.
- Rebase: No encuentro una traducción adecuada.
- Pull: Lo traduzco como *recibir*, pero pongo entre () el término original. No quiero usar *descargar* o *bajar*, porque parece que hace referencia a entornos cliente/servidor.
- Push: Lo traduzco como *mandar*, pero pongo entre () el término original. No quiero usar *subir*, porque parece que hace referencia a entornos cliente/servidor.
- Snapshot: Lo traduzco como *instantánea*, pero pongo entre () el término original.
- Snapshot: Lo traduzco como *instantánea*.
- Stage/Staged: Lo traduzco como *preparar*/*preparado*, pero pongo entre () el término original.
- Staging area: Parece ser un término militar. Se refiere a una localización temporal donde se reúnen recursos antes de un ataque o invasión. Lo traduzco como *área de preparación*, pero pongo entre () el término original.
- Track/Tracking: Lo traduzco como *seguir*/*seguimiento*.

0 comments on commit 0543969

Please sign in to comment.