Big picture
One change, from Ana's desk to an accepted history
Ana and Bruno maintain the Faro library guide. Each has a clone with its own history; GitHub hosts the shared repository and the conversation around a change. This picture puts every piece of the course on one scene.
Pick a journey: the dot is the change, and its letters are what it carries. Each stop says what is decided there and which lesson goes deeper. Click any piece, or any area, for its card.
Tags say how to see a stop for yourself: LAB with real Git on your computer, GITHUB in your practice repository, MODEL only in the lessons.
A · Record a change
working tree, index, commit
- Working tree: Ana changes the opening hour from 09:00 to 10:00 and starts an unfinished note. Both edits are only on her desk. What the dot carries: Edit. Lab Lesson 03 · Three places for a change
node lab.mjs local - Staging area: git add guide.txt prepares that content for the next commit: the content, not just the file name. What the dot carries: Edit. Lab Lesson 03 · Three places for a change
node lab.mjs staging - Working tree [11:00 here]: She edits again, to 11:00. The prepared content is still 10:00 until she adds again. What the dot carries: Edit. Lab Lesson 03 · Three places for a change
- Staging area [10:00 here]: Two comparisons: git diff shows 10:00 to 11:00; git diff --staged shows 09:00 to 10:00. Lab Lesson 03 · Three places for a change
- Commits and branches [commit]: git commit records the index as a snapshot, with a message, metadata and a link to its parent. What the dot carries: Commit. Lab Lesson 02 · Commits: snapshots with a reason
node lab.mjs snapshots - Commits and branches: Unchanged content is reused inside, not copied. The message says why: Fix hours after winter schedule change. What the dot carries: Commit. Lab Lesson 02 · Commits: snapshots with a reason
End of the journey: Saving, preparing and recording are three different acts. A commit records the index, so prepare exactly the decision you want to explain.
B · Branches, merges, conflicts
names that move, two parents, one question
- Commits and branches: main names the accepted history. git switch -c hours gives the same commit a second name; no new version is needed. Lab Lesson 04 · Branches are movable names
node lab.mjs branches - Working tree: With hours checked out, Ana changes the hours. What the dot carries: Edit. Lab Lesson 04 · Branches are movable names
- Commits and branches [hours moved]: Her commit advances hours, where HEAD points; main stays where it was. What the dot carries: Commit. Lab Lesson 04 · Branches are movable names
- Commits and branches [fast-forward]: If main has not moved, merging hours is a fast-forward: main moves to the tip, with no merge commit. Lab Lesson 05 · Merging histories
node lab.mjs merge - Commits and branches [2 parents]: If both lines advanced, Git combines them from their shared ancestor and records a merge commit with two parents. Lab Lesson 05 · Merging histories
- Working tree [conflict]: Ana wrote 10:00 and Bruno 11:00 on the same line: a conflict. Git cannot decide the library's schedule. Lab Lesson 06 · Conflicts are unanswered questions
node lab.mjs conflict - Staging area: They agree on 10:30, replace the markers with it and add the result. What the dot carries: Edit. Lab Lesson 06 · Conflicts are unanswered questions
- Commits and branches [10:30]: The merge commit records the decision. Then check the meaning: a workshop at 09:30 would now contradict the guide. What the dot carries: Commit. Lab Lesson 06 · Conflicts are unanswered questions
End of the journey: Branches are names; merging combines histories; a conflict is a question only people can answer. Text that merges cleanly can still say two things at once.
C · Publish, fetch, integrate
three references to main, and a rejected push
- Commits and branches: Ana has committed 10:00 on main. What the dot carries: Commit. Lab Lesson 08 · Fetch, integrate, publish
node lab.mjs sync - Repository Faro [pushed]: git push proposes moving main on GitHub to her commit. It is a fast-forward, so it is accepted. What the dot carries: Commit. Lab Lesson 08 · Fetch, integrate, publish
- origin/main: Ana's origin/main records that main on GitHub is now her commit: her last view, until the next fetch or push. What the dot carries: Commit. Lab Lesson 07 · Remotes and independent copies
- Bruno's origin/main [fetched]: Bruno runs git fetch. His origin/main moves; his main and his files do not. What the dot carries: Commit. Lab Lesson 08 · Fetch, integrate, publish
- Bruno's commits [ff-only]: He integrates with git merge --ff-only origin/main: his guide now says 10:00. Lab Lesson 08 · Fetch, integrate, publish
- Bruno's working tree: He adds a contact file, without fetching again. What the dot carries: Edit. Lab Lesson 08 · Fetch, integrate, publish
- Bruno's commits: He commits it on main. What the dot carries: Commit. Lab Lesson 08 · Fetch, integrate, publish
- Repository Faro [rejected]: Meanwhile Ana published 11:00. His push is rejected as non-fast-forward: it would drop her commit, and main on GitHub does not move. Lab Lesson 08 · Fetch, integrate, publish
- Bruno's origin/main: He fetches again. What the dot carries: Commit. Lab Lesson 08 · Fetch, integrate, publish
- Bruno's commits [merged]: He merges origin/main: his history now has both authors' work. Lab Lesson 08 · Fetch, integrate, publish
- Repository Faro [pushed]: His push now includes Ana's commit: accepted. What the dot carries: Commit. Lab Lesson 08 · Fetch, integrate, publish
End of the journey: Fetch learns, integration decides, push proposes. The rejected push protected Ana's work; the fix was to integrate, not to force.
D · From an issue to a pull request
the problem, then a proposal
- Issue: A visitor arrived at 09:00 and found the library closed. The issue records what was seen, what was expected and who can confirm the real schedule. What the dot carries: Problem statement. GitHub Lesson 10 · Issues: agree on the problem
- Pull request: Ana opens a pull request: base main, head winter-hours. Opening it merges nothing. What the dot carries: Problem statement, Proposed difference. GitHub Lesson 11 · Pull requests: propose a difference
- Repository Faro: Its head is the branch winter-hours she pushed to the repository. What the dot carries: Commit. GitHub Lesson 11 · Pull requests: propose a difference
- Pull request [updated]: Each new commit on winter-hours updates the proposal: the conversation follows evidence that evolves. What the dot carries: Proposed difference. GitHub Lesson 11 · Pull requests: propose a difference
- Pull request: Its description says the problem, what changes, how it was checked and which issue motivated it. What the dot carries: Proposed difference. GitHub Lesson 11 · Pull requests: propose a difference
End of the journey: The issue agrees on the problem; the pull request proposes one difference and keeps changing until it is merged. Neither one changes main by itself.
E · A contribution from a fork
no write access, still a proposal
- Repository Faro: A volunteer wants to fix the hours but has no write access to Faro. Model Lesson 09 · Fork, clone and branch
- Fork [forked]: She forks it: another repository on GitHub, under her account, linked to the original in a fork network. GitHub Lesson 09 · Fork, clone and branch
- Fork [fork only]: Her clone calls the fork origin and the original upstream. Her push updates the fork; the original stays unchanged. What the dot carries: Commit. Lab Lesson 09 · Fork, clone and branch
node lab.mjs forks - Pull request: She proposes the change from a branch of her fork to main in Faro. What the dot carries: Proposed difference. GitHub Lesson 09 · Fork, clone and branch
End of the journey: A fork gives a contributor a repository of their own to publish to; the original only changes if its maintainers merge the proposal.
F · Review and automated evidence
a check that fails with meaning, then a person
- Pull request: A new commit on the pull request is an event. What the dot carries: Proposed difference. GitHub Lesson 15 · Actions: automated evidence
- Actions [fails on 09:00]: It triggers the workflow: a job on a runner, its steps in order. The check expects README to contain 10:00, and it still says 09:00. GitHub Lesson 15 · Actions: automated evidence
- Pull request: The pull request shows the failing check. What the dot carries: Check result. GitHub Lesson 15 · Actions: automated evidence
- Actions [passes]: Fix the text and push: this run passes. Green means this assertion passed for this revision, nothing more. What the dot carries: Check result. GitHub Lesson 15 · Actions: automated evidence
- Review: A reviewer reads purpose, change and evidence: is 10:00 the real opening time? Does the workshop notice contradict it? GitHub Lesson 12 · Review: evidence and agreement
- Review [approved]: Approve, or request changes. The author cannot approve their own pull request. What the dot carries: Approval. GitHub Lesson 12 · Review: evidence and agreement
- Pull request: A later commit can change what was reviewed; whether the approval still counts is up to the rules. What the dot carries: Approval, Check result. GitHub Lesson 12 · Review: evidence and agreement
End of the journey: A check proves the assertion it makes, for one revision; a review judges purpose and meaning. Each covers what the other cannot.
G · Rules and integration
conditions at main, three histories
- Pull request: The proposal is approved and its check is green. What the dot carries: Approval, Check result. GitHub Lesson 16 · Rules: turn agreements into gates
- Repository Faro: Merging would update main. GitHub Lesson 16 · Rules: turn agreements into gates
- Ruleset on main [conditions met]: The ruleset on main requires a pull request, an approval and the status check. It names its target branch and who may bypass it. GitHub Lesson 16 · Rules: turn agreements into gates
- Repository Faro [merge]: Merge commit: two parents keep the meeting point and the individual commits. What the dot carries: Commit. Lab Lesson 13 · Same files, different histories
node lab.mjs strategies - Repository Faro [squash]: Squash: one new commit with the combined change; the feature commits are not its ancestors. What the dot carries: Commit. Lab Lesson 13 · Same files, different histories
- Repository Faro [rebase]: Rebase: the commits are replayed onto main as new commits with new identifiers. All three end with the same files. What the dot carries: Commit. Lab Lesson 13 · Same files, different histories
End of the journey: Rules turn agreements into conditions at the destination. Merge, squash and rebase can produce the same files with three different histories; choose the history you want to keep.
H · Undo without losing the story
revert what is shared, reset what is yours
- Commits and branches: A commit with the wrong hours was recorded and published. What the dot carries: Commit. Lab Lesson 14 · Undo without losing the story
node lab.mjs undo - Commits and branches [reverted]: git revert records a new commit that reverses its effect. The mistake stays in history, as its parent. What the dot carries: Commit. Lab Lesson 14 · Undo without losing the story
- Repository Faro [fast-forward]: The correction is published with an ordinary push: nobody has to move main backward. What the dot carries: Commit. Lab Lesson 14 · Undo without losing the story
- Commits and branches [local only]: On a branch nobody else uses, git reset --soft moves the branch back and keeps the change prepared. Lab Lesson 14 · Undo without losing the story
- Working tree [can discard]: A hard reset can discard edits. Reflogs record local movements for a while; they are not a backup. Model Lesson 14 · Undo without losing the story
End of the journey: First say which state you want back. For published work, revert adds a correction others can pull; reset moves a branch and belongs to history nobody else uses.
I · Tag, release, deploy
a fixed name, a story, then running
- Commits and branches [v1.0]: git tag -a v1.0 names a chosen commit. When main advances, the tag stays. What the dot carries: Tag v1.0. Lab Lesson 17 · Tags, releases and deployments
node lab.mjs tags - Repository Faro: The tag is pushed to GitHub. What the dot carries: Tag v1.0. GitHub Lesson 17 · Tags, releases and deployments
- Release v1.0: A release built on the tag adds notes: what changed for users, known limits, how to upgrade. What the dot carries: Tag v1.0. GitHub Lesson 17 · Tags, releases and deployments
- Deployment [another step]: Running it is another step, only if something is configured to do it. Record which revision runs in which environment. Model Lesson 17 · Tags, releases and deployments
End of the journey: The tag names the source point, the release explains it, and a deployment puts it to run. Three steps, three different facts.
J · History remembers what you remove
a fake marker, deleted but not gone
- Working tree: practice.env holds FAKE_NOT_A_SECRET, an unmistakably fake marker. What the dot carries: Fake marker. Lab Lesson 18 · History remembers what you remove
node lab.mjs secrets - Staging area: It is added... What the dot carries: Fake marker. Lab Lesson 18 · History remembers what you remove
- Commits and branches [recorded]: ...and committed. What the dot carries: Fake marker. Lab Lesson 18 · History remembers what you remove
- Commits and branches [still tracked]: A .gitignore rule added afterwards does not untrack a file already recorded. What the dot carries: Fake marker. Lab Lesson 18 · History remembers what you remove
- Commits and branches [still in history]: git rm and a new commit remove it from the current snapshot. The older commit still contains it. What the dot carries: Fake marker. Lab Lesson 18 · History remembers what you remove
- Repository Faro [revoke first]: Once pushed, every clone and fork can hold that commit. A real credential must be revoked or rotated first; rewriting one repository cannot reach every copy. What the dot carries: Fake marker. Model Lesson 18 · History remembers what you remove
End of the journey: Deleting a file records a new snapshot; older commits still contain it. With a real credential, revoke or rotate it first, then follow the host's cleanup process.
Areas
- Ana's computer · her clone
- Ana's clone of Faro: her working tree, her staging area, her commits and branches, and origin/main, her last view of main on GitHub. Everything she records here is local until she pushes. What it does not do: Nobody else sees it, and it does not change when Bruno or GitHub change: it learns about new commits only when Ana fetches. Lesson 02 · Commits: snapshots with a reason, Lesson 03 · Three places for a change, Lesson 07 · Remotes and independent copies
- GitHub · repository Faro
- Where the shared repository is hosted, with the conversation around each change: issues, forks, pull requests, reviews, Actions, the ruleset on main and releases. Both clones call it origin. What it does not do: It does not edit anyone's clone, and being able to read it is not being able to push to it. Merging a pull request or publishing a release deploys nothing by itself. Lesson 01 · Git and GitHub, Lesson 11 · Pull requests: propose a difference, Lesson 16 · Rules: turn agreements into gates
- Bruno's computer · his clone
- Bruno's own clone of the same project: his working tree, his commits and his origin/main. He records his work independently, and his main can diverge from Ana's. What it does not do: A clone is not a live shared folder: Bruno sees Ana's commits only after she pushes and he fetches, and fetching moves his origin/main without touching his main or his files. Lesson 07 · Remotes and independent copies, Lesson 08 · Fetch, integrate, publish
- An environment
- Where a chosen revision actually runs, such as a server or a site. A deployment places an artifact there; record which revision runs where. What it does not do: It is not part of Git or of the repository: a tag or a release puts nothing here unless something is configured to deploy it. Lesson 17 · Tags, releases and deployments
Pieces
- Working tree · guide.txt, as she edits it
- The files Ana is editing now. Saving guide.txt changes a file; it records nothing in history. What it does not do: Nobody else sees it, and restoring a file here can discard work that was never recorded. Lesson 03 · Three places for a change, Lesson 01 · Git and GitHub
- Staging area · the index: the next snapshot
- The content chosen for the next commit. git add copies the file's current content here. What it does not do: It is not a list of file names: edit the file after git add and the prepared content does not change. Lesson 03 · Three places for a change
- Commits and branches · snapshots linked to their parents; main, hours and HEAD point at them
- Ana's local history: commits, each a snapshot with a message and links to its parents, and the names that point at them. HEAD says where the next commit goes. What it does not do: A branch is a movable name, not a quality guarantee and not access isolation. A local commit is not on GitHub until it is pushed. Lesson 02 · Commits: snapshots with a reason, Lesson 04 · Branches are movable names, Lesson 05 · Merging histories, Lesson 14 · Undo without losing the story
- origin/main · her last view of main on GitHub
- A remote-tracking reference: what main looked like on origin the last time Ana fetched. What it does not do: It can be stale while someone else publishes. Her main, her origin/main and main on GitHub are three different references. Lesson 07 · Remotes and independent copies, Lesson 08 · Fetch, integrate, publish
- Bruno's working tree · the same guide, in another copy
- Bruno's files. They change when he edits them or integrates new history, never because Ana saved something. What it does not do: A clone is not a live shared folder. Lesson 01 · Git and GitHub, Lesson 07 · Remotes and independent copies
- Bruno's commits · his main, which can diverge from hers
- Bruno's local history: the same project, recorded independently. It only learns about Ana's commits through a fetch. What it does not do: Calling the remote origin does not make it official or give him permission to write. Lesson 07 · Remotes and independent copies, Lesson 08 · Fetch, integrate, publish
- Bruno's origin/main · his last view, maybe stale
- Bruno's remote-tracking reference for main. git fetch updates it. What it does not do: Fetching moves it without touching his main or his files. Lesson 08 · Fetch, integrate, publish
- Repository Faro · main and the published branches, hosted on GitHub
- The hosted repository both clones call origin. A push proposes moving one of its references; it accepts fast-forwards and rejects a history that would drop commits. What it does not do: It does not edit anyone's clone, and being able to read it is not being able to push to it. Lesson 07 · Remotes and independent copies, Lesson 08 · Fetch, integrate, publish, Lesson 13 · Same files, different histories
- Issue · the problem, agreed
- A problem statement: what was observed, what was expected, the context to reproduce it and who can confirm the real answer. What it does not do: Writing it changes no file, and closing it is a workflow event, not proof that anything is correct. Lesson 10 · Issues: agree on the problem
- Fork · another repository on GitHub
- A copy of Faro under another owner, linked in a fork network. Someone without write access can propose a change from a branch there. What it does not do: Updating the fork does not update the original, and availability depends on visibility and organization policy. Lesson 09 · Fork, clone and branch
- Pull request · base main, head winter-hours
- A proposal to bring the head branch's difference into the base branch, with its conversation, reviews and checks. What it does not do: Opening it merges nothing, and new commits on the head branch keep changing it. Lesson 11 · Pull requests: propose a difference
- Review · comment, approve, ask
- A person reads purpose, change and evidence, then comments, approves or requests changes. What it does not do: An approval is not a repository permission, and the author cannot approve their own pull request. Lesson 12 · Review: evidence and agreement
- Actions · workflow, job, runner
- Automation triggered by events: a workflow's jobs run on runners, their steps in order. The course's check looks for 10:00 in README. What it does not do: A green run proves its assertion for that revision, nothing else. A workflow has authority: keep its permissions narrow. Lesson 15 · Actions: automated evidence
- Ruleset on main · pull request, approval, check
- Conditions the destination branch requires before it updates: a pull request, approvals, passing status checks. What it does not do: A rule that targets another branch does not protect main, and whoever may bypass it is part of the rule. Lesson 16 · Rules: turn agreements into gates
- Release v1.0 · a tag plus notes
- A release built on a tag: notes about what changed, known limits and upgrade advice, plus downloadable assets. What it does not do: Publishing a release does not deploy anything. Lesson 17 · Tags, releases and deployments
- Deployment · what actually runs
- A chosen artifact placed in an environment. Record which revision runs where. What it does not do: It happens only if something is configured to do it; the tag alone runs nothing. Lesson 17 · Tags, releases and deployments
What travels
- E · Edit
- The new opening hour in guide.txt: 10:00 instead of 09:00. Comes from: Someone's working tree. Ends up: The index, then a commit.
- C · Commit
- A snapshot of the project with a message, metadata and links to its parents, named by an identifier. Comes from: git commit, from the index. Ends up: A local history, then other repositories through push and fetch.
- I · Problem statement
- What was observed, what was expected, and how to check it. Comes from: Whoever found the problem. Ends up: An issue, and the pull requests that cite it.
- P · Proposed difference
- What the head branch would change in the base branch. Comes from: A pushed branch, in the repository or in a fork. Ends up: A pull request, and finally main if it is merged.
- K · Check result
- Pass or fail of a workflow's assertion, for one revision. Comes from: An Actions run. Ends up: The pull request, where rules can require it.
- A · Approval
- A reviewer's agreement with the proposal as it was when they reviewed it. Comes from: A review by someone other than the author. Ends up: The pull request; rules decide whether it still counts after new commits.
- T · Tag v1.0
- A name for one chosen commit that does not advance with new work. Comes from: git tag -a, in a local history. Ends up: The repository on GitHub, and the release built on it.
- S · Fake marker
- FAKE_NOT_A_SECRET: an unmistakably fake value standing in for a credential. Comes from: A file that should never have been tracked. Ends up: Every commit that contains it, and every copy of those commits.
Panorama
Un cambio, del escritorio de Ana a una historia aceptada
Ana y Bruno mantienen la guía de la biblioteca Faro. Cada uno tiene un clon con su propia historia; GitHub aloja el repositorio compartido y la conversación alrededor de un cambio. Este dibujo pone en una escena todas las piezas del curso.
Elegí un recorrido: el punto es el cambio, y sus letras son lo que lleva. Cada parada dice qué se decide ahí y qué lección lo profundiza. Hacé clic en cualquier pieza, o en cualquier zona, para ver su ficha.
Las etiquetas dicen cómo ver cada parada por tu cuenta: LABORATORIO con Git real en tu computadora, GITHUB en tu repositorio de práctica, MODELO solo en las lecciones.
A · Registrar un cambio
working tree, index, commit
- Working tree: Ana cambia el horario de apertura de 09:00 a 10:00 y empieza una nota sin terminar. Las dos ediciones están solo en su escritorio. Qué lleva el punto: Edición. Laboratorio Lección 03 · Tres lugares para un cambio
node lab.mjs local - Staging area: git add guide.txt prepara ese contenido para el próximo commit: el contenido, no solo el nombre del archivo. Qué lleva el punto: Edición. Laboratorio Lección 03 · Tres lugares para un cambio
node lab.mjs staging - Working tree [acá 11:00]: Edita otra vez, a 11:00. El contenido preparado sigue en 10:00 hasta que vuelva a hacer add. Qué lleva el punto: Edición. Laboratorio Lección 03 · Tres lugares para un cambio
- Staging area [acá 10:00]: Dos comparaciones: git diff muestra 10:00 a 11:00; git diff --staged muestra 09:00 a 10:00. Laboratorio Lección 03 · Tres lugares para un cambio
- Commits y ramas [commit]: git commit registra el index como una instantánea, con un mensaje, metadatos y un enlace a su padre. Qué lleva el punto: Commit. Laboratorio Lección 02 · Commits: instantáneas con un motivo
node lab.mjs snapshots - Commits y ramas: El contenido que no cambió se reutiliza por dentro, no se copia. El mensaje dice por qué: Fix hours after winter schedule change. Qué lleva el punto: Commit. Laboratorio Lección 02 · Commits: instantáneas con un motivo
Fin del recorrido: Guardar, preparar y registrar son tres actos distintos. Un commit registra el index, así que prepará exactamente la decisión que querés explicar.
B · Ramas, merges, conflictos
nombres que se mueven, dos padres, una pregunta
- Commits y ramas: main nombra la historia aceptada. git switch -c hours le da un segundo nombre al mismo commit; no hace falta una versión nueva. Laboratorio Lección 04 · Las ramas son nombres que se mueven
node lab.mjs branches - Working tree: Con hours seleccionada, Ana cambia los horarios. Qué lleva el punto: Edición. Laboratorio Lección 04 · Las ramas son nombres que se mueven
- Commits y ramas [hours avanzó]: Su commit adelanta hours, adonde apunta HEAD; main queda donde estaba. Qué lleva el punto: Commit. Laboratorio Lección 04 · Las ramas son nombres que se mueven
- Commits y ramas [fast-forward]: Si main no se movió, el merge de hours es un fast-forward: main avanza hasta la punta, sin commit de merge. Laboratorio Lección 05 · Merge: unir historias
node lab.mjs merge - Commits y ramas [2 padres]: Si las dos líneas avanzaron, Git las combina desde su ancestro común y registra un commit de merge con dos padres. Laboratorio Lección 05 · Merge: unir historias
- Working tree [conflicto]: Ana escribió 10:00 y Bruno 11:00 en la misma línea: un conflicto. Git no puede decidir el horario de la biblioteca. Laboratorio Lección 06 · Los conflictos son preguntas sin responder
node lab.mjs conflict - Staging area: Acuerdan 10:30, reemplazan las marcas con eso y hacen add del resultado. Qué lleva el punto: Edición. Laboratorio Lección 06 · Los conflictos son preguntas sin responder
- Commits y ramas [10:30]: El commit de merge registra la decisión. Después revisá el sentido: un taller a las 09:30 ahora contradiría la guía. Qué lleva el punto: Commit. Laboratorio Lección 06 · Los conflictos son preguntas sin responder
Fin del recorrido: Las ramas son nombres; el merge combina historias; un conflicto es una pregunta que solo pueden responder personas. Un texto que se combina sin conflicto puede igual decir dos cosas a la vez.
C · Publicar, traer, integrar
tres referencias a main, y un push rechazado
- Commits y ramas: Ana hizo commit de 10:00 en main. Qué lleva el punto: Commit. Laboratorio Lección 08 · Fetch, integrar, publicar
node lab.mjs sync - Repositorio Faro [publicado]: git push propone mover main en GitHub a su commit. Es un fast-forward, así que se acepta. Qué lleva el punto: Commit. Laboratorio Lección 08 · Fetch, integrar, publicar
- origin/main: El origin/main de Ana registra que main en GitHub ahora es su commit: su última vista, hasta el próximo fetch o push. Qué lleva el punto: Commit. Laboratorio Lección 07 · Remotos y copias independientes
- origin/main de Bruno [traído]: Bruno corre git fetch. Su origin/main se mueve; su main y sus archivos, no. Qué lleva el punto: Commit. Laboratorio Lección 08 · Fetch, integrar, publicar
- Commits de Bruno [ff-only]: Integra con git merge --ff-only origin/main: su guía ahora dice 10:00. Laboratorio Lección 08 · Fetch, integrar, publicar
- Working tree de Bruno: Agrega un archivo de contacto, sin volver a hacer fetch. Qué lleva el punto: Edición. Laboratorio Lección 08 · Fetch, integrar, publicar
- Commits de Bruno: Hace commit en main. Qué lleva el punto: Commit. Laboratorio Lección 08 · Fetch, integrar, publicar
- Repositorio Faro [rechazado]: Mientras tanto Ana publicó 11:00. Su push se rechaza por non-fast-forward: perdería el commit de ella, y main en GitHub no se mueve. Laboratorio Lección 08 · Fetch, integrar, publicar
- origin/main de Bruno: Vuelve a hacer fetch. Qué lleva el punto: Commit. Laboratorio Lección 08 · Fetch, integrar, publicar
- Commits de Bruno [integrado]: Hace merge de origin/main: su historia ahora tiene el trabajo de los dos. Laboratorio Lección 08 · Fetch, integrar, publicar
- Repositorio Faro [publicado]: Su push ahora incluye el commit de Ana: se acepta. Qué lleva el punto: Commit. Laboratorio Lección 08 · Fetch, integrar, publicar
Fin del recorrido: Fetch se entera, integrar decide, push propone. El push rechazado protegió el trabajo de Ana; la solución fue integrar, no forzar.
D · De un issue a un pull request
el problema, después una propuesta
- Issue: Una persona llegó a las 09:00 y encontró la biblioteca cerrada. El issue registra qué se vio, qué se esperaba y quién puede confirmar el horario real. Qué lleva el punto: Planteo del problema. GitHub Lección 10 · Issues: acordar el problema
- Pull request: Ana abre un pull request: base main, head winter-hours. Abrirlo no hace ningún merge. Qué lleva el punto: Planteo del problema, Diferencia propuesta. GitHub Lección 11 · Pull requests: proponer una diferencia
- Repositorio Faro: Su head es la rama winter-hours que publicó en el repositorio. Qué lleva el punto: Commit. GitHub Lección 11 · Pull requests: proponer una diferencia
- Pull request [actualizado]: Cada commit nuevo en winter-hours actualiza la propuesta: la conversación sigue a una evidencia que cambia. Qué lleva el punto: Diferencia propuesta. GitHub Lección 11 · Pull requests: proponer una diferencia
- Pull request: Su descripción cuenta el problema, qué cambia, cómo se comprobó y qué issue lo motivó. Qué lleva el punto: Diferencia propuesta. GitHub Lección 11 · Pull requests: proponer una diferencia
Fin del recorrido: El issue acuerda el problema; el pull request propone una diferencia y sigue cambiando hasta el merge. Ninguno cambia main por sí solo.
E · Una contribución desde un fork
sin permiso de escritura, igual una propuesta
- Repositorio Faro: Una persona voluntaria quiere corregir los horarios pero no tiene permiso de escritura en Faro. Modelo Lección 09 · Fork, clon y rama
- Fork [fork creado]: Le hace fork: otro repositorio en GitHub, en su cuenta, enlazado al original en una red de forks. GitHub Lección 09 · Fork, clon y rama
- Fork [solo el fork]: Su clon llama origin al fork y upstream al original. Su push actualiza el fork; el original no cambia. Qué lleva el punto: Commit. Laboratorio Lección 09 · Fork, clon y rama
node lab.mjs forks - Pull request: Propone el cambio desde una rama de su fork hacia main en Faro. Qué lleva el punto: Diferencia propuesta. GitHub Lección 09 · Fork, clon y rama
Fin del recorrido: Un fork le da a quien contribuye un repositorio propio donde publicar; el original solo cambia si quienes lo mantienen hacen el merge de la propuesta.
F · Revisión y evidencia automática
un control que falla con sentido, después una persona
- Pull request: Un commit nuevo en el pull request es un evento. Qué lleva el punto: Diferencia propuesta. GitHub Lección 15 · Actions: evidencia automática
- Actions [falla con 09:00]: Dispara el workflow: un job en un runner, sus steps en orden. El control espera que el README contenga 10:00, y todavía dice 09:00. GitHub Lección 15 · Actions: evidencia automática
- Pull request: El pull request muestra el control fallido. Qué lleva el punto: Resultado del control. GitHub Lección 15 · Actions: evidencia automática
- Actions [pasa]: Corregí el texto y hacé push: esta ejecución pasa. Verde significa que esta afirmación pasó para esta revisión, nada más. Qué lleva el punto: Resultado del control. GitHub Lección 15 · Actions: evidencia automática
- Revisión: Quien revisa lee propósito, cambio y evidencia: ¿10:00 es el horario real de apertura? ¿El aviso del taller lo contradice? GitHub Lección 12 · Revisión: evidencia y acuerdo
- Revisión [aprobado]: Aprobar, o pedir cambios. Quien escribió el pull request no puede aprobarlo. Qué lleva el punto: Aprobación. GitHub Lección 12 · Revisión: evidencia y acuerdo
- Pull request: Un commit posterior puede cambiar lo revisado; si la aprobación sigue valiendo lo deciden las reglas. Qué lleva el punto: Aprobación, Resultado del control. GitHub Lección 12 · Revisión: evidencia y acuerdo
Fin del recorrido: Un control prueba la afirmación que hace, para una revisión; una revisión juzga el propósito y el sentido. Cada uno cubre lo que el otro no puede.
G · Reglas e integración
condiciones en main, tres historias
- Pull request: La propuesta está aprobada y su control está en verde. Qué lleva el punto: Aprobación, Resultado del control. GitHub Lección 16 · Reglas: convertir acuerdos en condiciones
- Repositorio Faro: El merge actualizaría main. GitHub Lección 16 · Reglas: convertir acuerdos en condiciones
- Ruleset sobre main [condiciones cumplidas]: El ruleset sobre main exige un pull request, una aprobación y el control. Nombra su rama destino y quién lo puede saltear. GitHub Lección 16 · Reglas: convertir acuerdos en condiciones
- Repositorio Faro [merge]: Commit de merge: dos padres conservan el punto de encuentro y los commits individuales. Qué lleva el punto: Commit. Laboratorio Lección 13 · Mismos archivos, historias distintas
node lab.mjs strategies - Repositorio Faro [squash]: Squash: un commit nuevo con el cambio combinado; los commits de la rama no son sus ancestros. Qué lleva el punto: Commit. Laboratorio Lección 13 · Mismos archivos, historias distintas
- Repositorio Faro [rebase]: Rebase: los commits se reaplican sobre main como commits nuevos con identificadores nuevos. Los tres terminan con los mismos archivos. Qué lleva el punto: Commit. Laboratorio Lección 13 · Mismos archivos, historias distintas
Fin del recorrido: Las reglas convierten acuerdos en condiciones en el destino. Merge, squash y rebase pueden dar los mismos archivos con tres historias distintas; elegí la historia que querés conservar.
H · Deshacer sin perder la historia
revert para lo compartido, reset para lo tuyo
- Commits y ramas: Se registró y publicó un commit con el horario equivocado. Qué lleva el punto: Commit. Laboratorio Lección 14 · Deshacer sin perder la historia
node lab.mjs undo - Commits y ramas [revertido]: git revert registra un commit nuevo que revierte su efecto. El error queda en la historia, como su padre. Qué lleva el punto: Commit. Laboratorio Lección 14 · Deshacer sin perder la historia
- Repositorio Faro [fast-forward]: La corrección se publica con un push normal: nadie tiene que mover main hacia atrás. Qué lleva el punto: Commit. Laboratorio Lección 14 · Deshacer sin perder la historia
- Commits y ramas [solo local]: En una rama que nadie más usa, git reset --soft mueve la rama hacia atrás y deja el cambio preparado. Laboratorio Lección 14 · Deshacer sin perder la historia
- Working tree [puede descartar]: Un reset hard puede descartar ediciones. Los reflogs registran movimientos locales por un tiempo; no son un respaldo. Modelo Lección 14 · Deshacer sin perder la historia
Fin del recorrido: Primero decí qué estado querés recuperar. Para trabajo publicado, revert agrega una corrección que otros pueden traer; reset mueve una rama y es para historia que nadie más usa.
I · Tag, release, despliegue
un nombre fijo, una historia, y después correr
- Commits y ramas [v1.0]: git tag -a v1.0 nombra un commit elegido. Cuando main avanza, el tag se queda. Qué lleva el punto: Tag v1.0. Laboratorio Lección 17 · Tags, releases y despliegues
node lab.mjs tags - Repositorio Faro: El tag se publica en GitHub. Qué lleva el punto: Tag v1.0. GitHub Lección 17 · Tags, releases y despliegues
- Release v1.0: Una release construida sobre el tag agrega notas: qué cambió para quien la usa, límites conocidos, cómo actualizar. Qué lleva el punto: Tag v1.0. GitHub Lección 17 · Tags, releases y despliegues
- Despliegue [otro paso]: Ejecutarla es otro paso, solo si algo está configurado para hacerlo. Anotá qué revisión corre en qué entorno. Modelo Lección 17 · Tags, releases y despliegues
Fin del recorrido: El tag nombra el punto de origen, la release lo explica y un despliegue lo pone a correr. Tres pasos, tres hechos distintos.
J · La historia recuerda lo que quitás
un marcador ficticio, borrado pero no ido
- Working tree: practice.env guarda FAKE_NOT_A_SECRET, un marcador inconfundiblemente falso. Qué lleva el punto: Marcador ficticio. Laboratorio Lección 18 · La historia recuerda lo que quitás
node lab.mjs secrets - Staging area: Se le hace add... Qué lleva el punto: Marcador ficticio. Laboratorio Lección 18 · La historia recuerda lo que quitás
- Commits y ramas [registrado]: ...y commit. Qué lleva el punto: Marcador ficticio. Laboratorio Lección 18 · La historia recuerda lo que quitás
- Commits y ramas [sigue seguido]: Una regla de .gitignore agregada después no deja de seguir un archivo ya registrado. Qué lleva el punto: Marcador ficticio. Laboratorio Lección 18 · La historia recuerda lo que quitás
- Commits y ramas [sigue en la historia]: git rm y un commit nuevo lo quitan de la instantánea actual. El commit anterior lo sigue conteniendo. Qué lleva el punto: Marcador ficticio. Laboratorio Lección 18 · La historia recuerda lo que quitás
- Repositorio Faro [revocar primero]: Una vez publicado, cada clon y cada fork pueden tener ese commit. Una credencial real se revoca o se rota primero; reescribir un repositorio no llega a todas las copias. Qué lleva el punto: Marcador ficticio. Modelo Lección 18 · La historia recuerda lo que quitás
Fin del recorrido: Borrar un archivo registra una instantánea nueva; los commits anteriores lo siguen conteniendo. Con una credencial real, revocala o rotala primero, y después seguí el proceso de limpieza del servicio.
Zonas
- La computadora de Ana · su clon
- El clon de Faro de Ana: su working tree, su staging area, sus commits y ramas, y origin/main, su última vista de main en GitHub. Todo lo que registra acá es local hasta que hace push. Qué no hace: Nadie más lo ve, y no cambia cuando cambian Bruno o GitHub: se entera de commits nuevos solo cuando Ana hace fetch. Lección 02 · Commits: instantáneas con un motivo, Lección 03 · Tres lugares para un cambio, Lección 07 · Remotos y copias independientes
- GitHub · repositorio Faro
- Donde está alojado el repositorio compartido, con la conversación alrededor de cada cambio: issues, forks, pull requests, revisiones, Actions, el ruleset sobre main y las releases. Los dos clones lo llaman origin. Qué no hace: No edita el clon de nadie, y poder leerlo no es poder hacer push. Hacer merge de un pull request o publicar una release no despliega nada por sí solo. Lección 01 · Git y GitHub, Lección 11 · Pull requests: proponer una diferencia, Lección 16 · Reglas: convertir acuerdos en condiciones
- La computadora de Bruno · su clon
- El clon propio de Bruno, del mismo proyecto: su working tree, sus commits y su origin/main. Registra su trabajo por su cuenta, y su main puede divergir del de Ana. Qué no hace: Un clon no es una carpeta compartida en vivo: Bruno ve los commits de Ana solo después de que ella hace push y él hace fetch, y el fetch mueve su origin/main sin tocar su main ni sus archivos. Lección 07 · Remotos y copias independientes, Lección 08 · Fetch, integrar, publicar
- Un entorno
- Donde corre de verdad una revisión elegida, como un servidor o un sitio. Un despliegue pone un artefacto ahí; anotá qué revisión corre dónde. Qué no hace: No es parte de Git ni del repositorio: un tag o una release no ponen nada acá salvo que algo esté configurado para desplegarlo. Lección 17 · Tags, releases y despliegues
Piezas
- Working tree · guide.txt, tal como lo edita
- Los archivos que Ana edita ahora. Guardar guide.txt cambia un archivo; no registra nada en la historia. Qué no hace: Nadie más lo ve, y restaurar un archivo acá puede descartar trabajo que nunca se registró. Lección 03 · Tres lugares para un cambio, Lección 01 · Git y GitHub
- Staging area · el index: la próxima instantánea
- El contenido elegido para el próximo commit. git add copia acá el contenido actual del archivo. Qué no hace: No es una lista de nombres de archivo: si editás el archivo después de git add, el contenido preparado no cambia. Lección 03 · Tres lugares para un cambio
- Commits y ramas · instantáneas unidas a sus padres; main, hours y HEAD apuntan a ellas
- La historia local de Ana: commits, cada uno una instantánea con un mensaje y enlaces a sus padres, y los nombres que apuntan a ellos. HEAD dice adónde va el próximo commit. Qué no hace: Una rama es un nombre que se mueve, no una garantía de calidad ni un aislamiento de permisos. Un commit local no está en GitHub hasta que se hace push. Lección 02 · Commits: instantáneas con un motivo, Lección 04 · Las ramas son nombres que se mueven, Lección 05 · Merge: unir historias, Lección 14 · Deshacer sin perder la historia
- origin/main · su última vista de main en GitHub
- Una referencia de seguimiento: cómo estaba main en origin la última vez que Ana hizo fetch. Qué no hace: Puede estar desactualizada mientras otra persona publica. Su main, su origin/main y main en GitHub son tres referencias distintas. Lección 07 · Remotos y copias independientes, Lección 08 · Fetch, integrar, publicar
- Working tree de Bruno · la misma guía, en otra copia
- Los archivos de Bruno. Cambian cuando él los edita o integra historia nueva, nunca porque Ana guardó algo. Qué no hace: Un clon no es una carpeta compartida en vivo. Lección 01 · Git y GitHub, Lección 07 · Remotos y copias independientes
- Commits de Bruno · su main, que puede divergir del de ella
- La historia local de Bruno: el mismo proyecto, registrado de forma independiente. Solo se entera de los commits de Ana con un fetch. Qué no hace: Que el remoto se llame origin no lo vuelve oficial ni le da permiso para escribir. Lección 07 · Remotos y copias independientes, Lección 08 · Fetch, integrar, publicar
- origin/main de Bruno · su última vista, quizá vieja
- La referencia de seguimiento de Bruno para main. git fetch la actualiza. Qué no hace: Hacer fetch la mueve sin tocar su main ni sus archivos. Lección 08 · Fetch, integrar, publicar
- Repositorio Faro · main y las ramas publicadas, alojadas en GitHub
- El repositorio alojado que los dos clones llaman origin. Un push propone mover una de sus referencias; acepta fast-forwards y rechaza una historia que perdería commits. Qué no hace: No edita el clon de nadie, y poder leerlo no es poder hacer push. Lección 07 · Remotos y copias independientes, Lección 08 · Fetch, integrar, publicar, Lección 13 · Mismos archivos, historias distintas
- Issue · el problema, acordado
- Un planteo del problema: qué se observó, qué se esperaba, el contexto para reproducirlo y quién puede confirmar la respuesta real. Qué no hace: Escribirlo no cambia ningún archivo, y cerrarlo es un evento de flujo de trabajo, no prueba de que algo esté bien. Lección 10 · Issues: acordar el problema
- Fork · otro repositorio en GitHub
- Una copia de Faro con otro dueño, enlazada en una red de forks. Alguien sin permiso de escritura puede proponer un cambio desde una rama de ahí. Qué no hace: Actualizar el fork no actualiza el original, y que se pueda crear depende de la visibilidad y de la política de la organización. Lección 09 · Fork, clon y rama
- Pull request · base main, head winter-hours
- Una propuesta de llevar la diferencia de la rama head a la rama base, con su conversación, sus revisiones y sus controles. Qué no hace: Abrirlo no hace ningún merge, y los commits nuevos en la rama head lo siguen cambiando. Lección 11 · Pull requests: proponer una diferencia
- Revisión · comentar, aprobar, pedir
- Una persona lee propósito, cambio y evidencia, y después comenta, aprueba o pide cambios. Qué no hace: Una aprobación no es un permiso del repositorio, y quien escribió el pull request no puede aprobarlo. Lección 12 · Revisión: evidencia y acuerdo
- Actions · workflow, job, runner
- Automatización disparada por eventos: los jobs de un workflow corren en runners, y sus steps en orden. El control del curso busca 10:00 en el README. Qué no hace: Una ejecución verde prueba su afirmación para esa revisión, nada más. Un workflow tiene autoridad: limitá sus permisos. Lección 15 · Actions: evidencia automática
- Ruleset sobre main · pull request, aprobación, control
- Condiciones que exige la rama destino antes de actualizarse: un pull request, aprobaciones, controles en verde. Qué no hace: Una regla que apunta a otra rama no protege main, y quien la puede saltear es parte de la regla. Lección 16 · Reglas: convertir acuerdos en condiciones
- Release v1.0 · un tag más notas
- Una release construida sobre un tag: notas de qué cambió, límites conocidos y consejos para actualizar, más archivos para descargar. Qué no hace: Publicar una release no despliega nada. Lección 17 · Tags, releases y despliegues
- Despliegue · lo que de verdad corre
- Un artefacto elegido puesto en un entorno. Anotá qué revisión corre dónde. Qué no hace: Solo ocurre si algo está configurado para hacerlo; el tag solo no ejecuta nada. Lección 17 · Tags, releases y despliegues
Qué viaja
- E · Edición
- El nuevo horario de apertura en guide.txt: 10:00 en lugar de 09:00. De dónde viene: El working tree de alguien. Dónde termina: El index, y después un commit.
- C · Commit
- Una instantánea del proyecto con un mensaje, metadatos y enlaces a sus padres, nombrada por un identificador. De dónde viene: git commit, desde el index. Dónde termina: Una historia local, y después otros repositorios con push y fetch.
- I · Planteo del problema
- Qué se observó, qué se esperaba y cómo comprobarlo. De dónde viene: Quien encontró el problema. Dónde termina: Un issue, y los pull requests que lo citan.
- P · Diferencia propuesta
- Lo que la rama head cambiaría en la rama base. De dónde viene: Una rama publicada, en el repositorio o en un fork. Dónde termina: Un pull request, y al final main si se hace el merge.
- K · Resultado del control
- Pasa o falla de una afirmación de un workflow, para una revisión. De dónde viene: Una ejecución de Actions. Dónde termina: El pull request, donde las reglas lo pueden exigir.
- A · Aprobación
- El acuerdo de quien revisa con la propuesta tal como estaba cuando la revisó. De dónde viene: Una revisión de alguien que no es quien escribió. Dónde termina: El pull request; las reglas deciden si sigue valiendo después de commits nuevos.
- T · Tag v1.0
- Un nombre para un commit elegido que no avanza con el trabajo nuevo. De dónde viene: git tag -a, en una historia local. Dónde termina: El repositorio en GitHub, y la release construida sobre él.
- S · Marcador ficticio
- FAKE_NOT_A_SECRET: un valor inconfundiblemente falso en lugar de una credencial. De dónde viene: Un archivo que nunca tendría que haberse seguido. Dónde termina: Cada commit que lo contiene, y cada copia de esos commits.