El sitio web de tnotstar

Apuntes de lecturas (readings)

Lectura: «Pro Git» ―Scott Chacon & Ben Straub

Fuente(s):

  • chacon-et-al.pro-git_2ed.bk.pdf.

1. Getting Started

Acerca del Control de versiones

Los VCS locales
Los VCS centralizados
Los VCS distribuidos

Una historia corta de Git

2. Git Basics

TODO

3. Git Branching

TODO

4. Git on the Server

TODO

5. Distributed Git

TODO

6. Github

TODO

7. Git Tools

TODO

8. Customizing Git

TODO

9. Git and Other Systems

TODO

10. Git Internals

TODO

A. Git in Other Environments

TODO

B. Embedded Git in Your Applicatioons

TODO

C. Git Commands

TODO

Temas específicos (topics)

Submodulos

Fuentes:

Apuntes de cursos (courses)

Codecademy: «Learn Git»

Fuente: https://www.codecademy.com/learn/learn-git.

TODO

StackSkills: «Git Complete: The Definitive, Step-By-Step Guide»

Fuente(s):

Git Installation

Para instalar Git en Windows, vía Scoop, debemos ejecutar:

C:\> sudo scoop install -g git

Notas:

  • El comando anterior instalará git de manera global.
  • Para poder utilizar el comando sudo, debemos instalar las herramientas de psutils

TODO

Procedimientos y tareas comunes (tasks)

Mostrar cambios o diferencias (diff)

Cambios en nuestro directorio de trabajo (working directory)

$ git diff

Cambios en nuestra área de montaje (staging area)

$ git diff --staged

Cambios en nuestro repositorio local (local repository)

$ git diff <commit-id>^!

En donde <commit-id> es el identificar de commit con el cual queremos hacer la comparación.

Inicializar un proyecto en Github

$ git clone https://github.com/user/repository.git

…or create a new repository on the command line

echo “# repository” » README.md git init git add README.md git commit -m “first commit” git remote add origin https://github.com/user/repository.git git push -u origin master

…or push an existing repository from the command line

git remote add origin https://github.com/user/repository.git git push -u origin master

…or import code from another repository

You can initialize this repository with code from a Subversion, Mercurial, or TFS project.

Github’s verified commit

TODO