# Controle de versão & Git (DevOps) > Conceitos básicos de Git, branches, merge, rebase, pull requests, convenções de commit, workflow gitflow - 20 perguntas de entrevista - Junior - [Perguntas de entrevista: DevOps](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista.md) ## 1. O que é Git? **Resposta** Git é um sistema de controle de versão distribuído que rastreia mudanças no código-fonte ao longo do tempo. Cada desenvolvedor tem uma cópia completa do histórico do projeto em sua máquina local, diferente de sistemas centralizados como SVN. Isso permite trabalhar offline e oferece melhor resiliência pois não há um ponto único de falha. ## 2. Qual comando inicializa um novo repositório Git em uma pasta? **Resposta** O comando git init cria um novo repositório Git local no diretório atual criando uma subpasta oculta .git que contém todos os arquivos de metadados do repositório. Este comando é o primeiro passo para começar a rastrear mudanças com Git em um projeto existente ou novo. ## 3. Qual comando adiciona arquivos à staging area (índice) antes de comitá-los? **Resposta** O comando git add permite adicionar modificações de arquivos à staging area (zona de trânsito). Este passo intermediário entre a modificação e o commit permite selecionar precisamente quais mudanças incluir no próximo commit. Por exemplo, git add . adiciona todos os arquivos modificados, enquanto git add arquivo.txt adiciona apenas esse arquivo específico. ## Mais 17 perguntas disponiveis - Qual comando registra as mudanças da staging area no histórico do Git? - Como criar uma nova branch Git e mudar para ela imediatamente? Cadastre-se gratis: https://sharpskill.dev/pt/login ## Outros temas de entrevista DevOps - [Fundamentos do Linux](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/linux-fundamentals.md): 22 perguntas, Junior - [Shell Scripting & Bash](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/shell-scripting-bash.md): 20 perguntas, Mid-Level - [Fundamentos de Redes](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/networking-basics.md): 22 perguntas, Junior - [Fundamentos do Docker](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/docker-fundamentals.md): 24 perguntas, Junior - [Fundamentos de CI/CD](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/ci-cd-fundamentals.md): 18 perguntas, Junior - [GitHub Actions](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/github-actions.md): 22 perguntas, Mid-Level - [GitLab CI/CD](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/gitlab-ci.md): 22 perguntas, Mid-Level - [Jenkins](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/jenkins.md): 22 perguntas, Mid-Level - [Fundamentos do Kubernetes](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/kubernetes-basics.md): 26 perguntas, Mid-Level - [Networking de Kubernetes](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/kubernetes-networking.md): 24 perguntas, Mid-Level - [Kubernetes Avançado](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/kubernetes-advanced.md): 24 perguntas, Mid-Level - [Ingress & API Gateway](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/ingress-api-gateway.md): 20 perguntas, Mid-Level - [Fundamentos do Terraform](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/terraform-basics.md): 22 perguntas, Mid-Level - [Terraform Avançado](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/terraform-advanced.md): 22 perguntas, Mid-Level - [Ansible & Configuration Management](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/ansible-configuration.md): 20 perguntas, Mid-Level - [Fundamentos do AWS](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/aws-essentials.md): 26 perguntas, Mid-Level - [Fundamentos do Azure](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/azure-fundamentals.md): 22 perguntas, Mid-Level - [Fundamentos do GCP](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/gcp-fundamentals.md): 22 perguntas, Mid-Level - [Monitoramento e Prometheus](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/monitoring-prometheus.md): 22 perguntas, Mid-Level - [Logging & ELK Stack](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/logging-elk.md): 20 perguntas, Mid-Level - [Alerting e Incident Response](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/alerting-incident-response.md): 20 perguntas, Mid-Level - [Cloud Identity & Secrets](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/cloud-identity-secrets.md): 22 perguntas, Mid-Level - [Segurança de Pipelines CI/CD](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/cicd-pipeline-security.md): 20 perguntas, Mid-Level - [Helm & Kubernetes](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/helm-kubernetes.md): 20 perguntas, Mid-Level - [Segurança Runtime e Cluster](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/runtime-cluster-security.md): 24 perguntas, Senior - [Container Supply Chain Security](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/container-supply-chain.md): 22 perguntas, Senior - [Service Mesh & Istio](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/service-mesh-istio.md): 24 perguntas, Senior - [GitOps & ArgoCD](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/gitops-argocd.md): 22 perguntas, Senior - [Progressive Delivery](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/progressive-delivery.md): 20 perguntas, Senior - [Observabilidade Distribuída](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/observability-distributed.md): 22 perguntas, Senior - [Disaster Recovery & Backup](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/disaster-recovery.md): 20 perguntas, Senior - [Otimização de Desempenho](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/performance-optimization.md): 22 perguntas, Senior - [Otimização de Custos na Nuvem](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/infrastructure-cost.md): 20 perguntas, Senior - [Princípios de SRE](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/sre-principles.md): 24 perguntas, Senior - [Chaos Engineering](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/chaos-engineering.md): 20 perguntas, Senior - [Platform Engineering](https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/platform-engineering.md): 22 perguntas, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/pt/technologies/devops/perguntas-entrevista/version-control-git