# Control de versiones & Git (DevOps) > Conceptos básicos de Git, branches, merge, rebase, pull requests, convenciones de commits, workflow gitflow - 20 preguntas de entrevista - Junior - [Preguntas de entrevista: DevOps](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista.md) ## 1. ¿Qué es Git? **Respuesta** Git es un sistema de control de versiones distribuido que rastrea los cambios del código fuente a lo largo del tiempo. Cada desarrollador tiene una copia completa del historial del proyecto en su máquina local, a diferencia de sistemas centralizados como SVN. Esto permite trabajar sin conexión y ofrece mejor resiliencia ya que no hay un punto único de fallo. ## 2. ¿Qué comando inicializa un nuevo repositorio Git en una carpeta? **Respuesta** El comando git init crea un nuevo repositorio Git local en el directorio actual creando una subcarpeta oculta .git que contiene todos los archivos de metadatos del repositorio. Este comando es el primer paso para empezar a rastrear cambios con Git en un proyecto existente o nuevo. ## 3. ¿Qué comando agrega archivos al staging area (índice) antes de hacer commit? **Respuesta** El comando git add permite agregar modificaciones de archivos al staging area (zona de tránsito). Este paso intermedio entre la modificación y el commit permite seleccionar con precisión qué cambios incluir en el próximo commit. Por ejemplo, git add . agrega todos los archivos modificados, mientras que git add archivo.txt agrega solo ese archivo específico. ## 17 preguntas más disponibles - ¿Qué comando registra los cambios del staging area en el historial de Git? - ¿Cómo crear una nueva branch Git y cambiar a ella inmediatamente? Regístrate gratis: https://sharpskill.dev/es/login ## Otros temas de entrevista DevOps - [Fundamentos de Linux](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/linux-fundamentals.md): 22 preguntas, Junior - [Shell Scripting & Bash](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/shell-scripting-bash.md): 20 preguntas, Mid-Level - [Fundamentos de Networking](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/networking-basics.md): 22 preguntas, Junior - [Fundamentos de Docker](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/docker-fundamentals.md): 24 preguntas, Junior - [Fundamentos de CI/CD](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/ci-cd-fundamentals.md): 18 preguntas, Junior - [GitHub Actions](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/github-actions.md): 22 preguntas, Mid-Level - [GitLab CI/CD](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/gitlab-ci.md): 22 preguntas, Mid-Level - [Jenkins](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/jenkins.md): 22 preguntas, Mid-Level - [Fundamentos de Kubernetes](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/kubernetes-basics.md): 26 preguntas, Mid-Level - [Networking de Kubernetes](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/kubernetes-networking.md): 24 preguntas, Mid-Level - [Kubernetes Avanzado](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/kubernetes-advanced.md): 24 preguntas, Mid-Level - [Ingress & API Gateway](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/ingress-api-gateway.md): 20 preguntas, Mid-Level - [Fundamentos de Terraform](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/terraform-basics.md): 22 preguntas, Mid-Level - [Terraform Avanzado](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/terraform-advanced.md): 22 preguntas, Mid-Level - [Ansible & Configuration Management](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/ansible-configuration.md): 20 preguntas, Mid-Level - [Fundamentos de AWS](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/aws-essentials.md): 26 preguntas, Mid-Level - [Fundamentos de Azure](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/azure-fundamentals.md): 22 preguntas, Mid-Level - [Fundamentos de GCP](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/gcp-fundamentals.md): 22 preguntas, Mid-Level - [Monitoreo y Prometheus](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/monitoring-prometheus.md): 22 preguntas, Mid-Level - [Logging & ELK Stack](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/logging-elk.md): 20 preguntas, Mid-Level - [Alerting e Incident Response](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/alerting-incident-response.md): 20 preguntas, Mid-Level - [Cloud Identity & Secrets](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/cloud-identity-secrets.md): 22 preguntas, Mid-Level - [Seguridad de Pipelines CI/CD](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/cicd-pipeline-security.md): 20 preguntas, Mid-Level - [Helm & Kubernetes](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/helm-kubernetes.md): 20 preguntas, Mid-Level - [Seguridad Runtime y Cluster](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/runtime-cluster-security.md): 24 preguntas, Senior - [Container Supply Chain Security](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/container-supply-chain.md): 22 preguntas, Senior - [Service Mesh & Istio](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/service-mesh-istio.md): 24 preguntas, Senior - [GitOps & ArgoCD](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/gitops-argocd.md): 22 preguntas, Senior - [Progressive Delivery](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/progressive-delivery.md): 20 preguntas, Senior - [Observabilidad Distribuida](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/observability-distributed.md): 22 preguntas, Senior - [Disaster Recovery & Backup](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/disaster-recovery.md): 20 preguntas, Senior - [Optimización del Rendimiento](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/performance-optimization.md): 22 preguntas, Senior - [Optimización de Costos en la Nube](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/infrastructure-cost.md): 20 preguntas, Senior - [Principios de SRE](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/sre-principles.md): 24 preguntas, Senior - [Chaos Engineering](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/chaos-engineering.md): 20 preguntas, Senior - [Platform Engineering](https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/platform-engineering.md): 22 preguntas, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/es/technologies/devops/preguntas-entrevista/version-control-git