Git Product home page Git Product logo

resumos_git_e_github's Introduction

Principais Comandos para Git e GitHub

Comandos Básicos do Git

teste para alteração

  1. Configuração Inicial
    git config --global user.name "Seu Nome"
    git config --global user.email "[email protected]"
    
  2. Inicializar um Repositório
    git init
    
  3. Clonar um Repositório
    git clone https://github.com/usuario/repo.git  
    
  4. Verificar o Status do Repositório
    git status
    
  5. Adicionar Arquivos ao Índice (Stage)
    git add nome_do_arquivo
    git add .  
    
  6. Fazer um Commit
    git commit -m "Mensagem do commit"
    
  7. Verificar o Histórico de Commits
    git log
    
  8. Criar uma Nova Branch
    git branch nome_da_branch
    
  9. Mudar para uma Branch
    git checkout nome_da_branch
    
  10. Criar e Mudar para uma Nova Branch
    git checkout -b nome_da_branch
    
  11. Mesclar uma Branch
    git merge nome_da_branch
    
  12. Excluir uma Branch
    git branch -d nome_da_branch
    
  13. Adicionar um Repositório Remoto
    git remote add origin https://github.com/usuario/repo.git
    
  14. Verificar Repositórios Remotos
    git remote -v
    
  15. Enviar Commits para o Repositório Remoto
    git push origin nome_da_branch
    
  16. Atualizar o Repositório Local com Alterações do Remoto
    git pull origin nome_da_branch
    
  17. Reverter um Commit
     git revert hash_do_commit
    
  18. Resetar para um Commit Específico
    git reset --hard hash_do_commit
    git reset -- soft hash_do_commit
    git reset -- mixed hash_do_commit
    
  19. Verificar Diferenças Entre Commits ou Branches
    git diff
    
  20. Stash: Salvar Alterações Temporariamente
    git stash
    git stash pop

resumos_git_e_github's People

Contributors

alrosendo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.