Fundamentos de Git y control de versiones
¿Qué son Git y GitHub?
Configuración Inicial de Git: init y config
Comandos Básicos de Git: add, commit y log
Ramas y Fusión de Cambios: branch, merge, switch y checkout
Volviendo en el Tiempo en Git: reset y revert
Gestión de versiones: tag y checkout
Cómo Resolver Conflictos de Ramas en Git
Usando Git desde Visual Studio Code
Quiz: Fundamentos de Git y control de versiones
Introducción a GitHub
Por qué GitHub es clave para los Desarrolladores
Creación y configuración de cuenta de GitHub
¿Cómo integrar Git y GitHub en un flujo de trabajo profesional?
Gestión de Repositorios en GitHub
Productos de GitHub: precios, planes y apps
Cómo configurar SSH para GitHub: Guía paso a paso
Clone, fork y estrellas a repositorios
Trabajo con repositorios remotos: push, pull y fetch
Gestión de Issues y Discussions en GitHub
Colaboración sin errores: Pull Requests en GitHub
Quiz: Introducción a GitHub
Herramientas de colaboración en GitHub
Introducción a GitHub Projects
Automatización y Gestión de Proyectos en GitHub
Documentación en GitHub con Markdown
Personaliza tu Perfil de GitHub con Markdown
Uso de Wikis
Cómo usar GitHub Gist
Cómo usar GitHub Pages
Quiz: Herramientas de colaboración en GitHub
GitHub Codespaces
Cómo usar GitHub Codespaces: Configuración y Desarrollo en la Nube
Cómo configurar entornos de desarrollo avanzados en GitHub Codespaces
Pair Programming con Codespaces y Visual Studio Code
Cómo usar GitHub.dev Editor
Quiz: GitHub Codespaces
Seguridad y buenas prácticas en GitHub
Cómo Usar Tokens en GitHub para Acceso Seguro a Repositorios Privados
Gestión de Dependencias y Seguridad con Dependabot en GitHub
Mantenimiento de repositorios seguros
Gestión de datos sensibles y políticas de seguridad
Quiz: Seguridad y buenas prácticas en GitHub
Administración de GitHub
Administración de organizaciones en GitHub
Cómo personalizar tu perfil de GitHub con GitHub Actions
GitHub CLI para administración
Quiz: Administración de GitHub
Gestión de Cambios con Pull Requests
Importancia de los Pull Requests y Ramas en GitHub
Revisión y Fusión de Pull Requests
Git Rebase
Quiz: Gestión de Cambios con Pull Requests
GitHub Releases
Introducción a los GitHub Releases
Publicación de paquetes en GitHub y PyPI
Quiz: GitHub Releases
Cierre
ProTips: Mejora tu productividad diaria en GitHub
You don't have access to this class
Keep learning! Join and start boosting your career
Using branches in Git allows you to work in an isolated environment without interfering with others, facilitating project organization and control. Learning how to create, manage and merge branches optimizes collaboration and helps keep the change history clean.
Branching is a tool that allows you to work on specific tasks without altering the main branch. Among its advantages are:
To find out which branch you are working on, run:
git branch
The asterisk (*) indicates the active branch. Initially, it is usually main
, but as you create more branches, the list will grow, allowing you to see all available branches and which is the current one.
Creating branches allows you to develop without risk in parallel. To create and move to a new branch, use:
git checkout -b
For example, git checkout -b Amin
creates and moves to the Amin
branch. You can verify that you are in this branch by running git branch
.
Within a new branch, files are edited and committed without impacting other branches. Follow these steps to add and commit:
:git add .
with:git commit -m "commit message"
.The changes are now part of the branch you are working on and do not affect the main branch.
To unify the work on the main branch:
:git switch main
Note: You can also use git checkout main
.:git merge
Git will indicate that the process was successful and update the content in the main
branch with the changes from the child branch.
Once a branch has been merged, it is good practice to remove it to avoid clutter. Do this with:
git branch -d
Removing branches that have served their purpose prevents conflicts and keeps the working environment clean and organized.
Contributions 35
Questions 2
Want to see more contributions, questions and answers from the community?