OdZarref

Comandos git

Jan 29th, 2020
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. git config --global user.name "user.name" #Define o nome do usuário.
  2. git config --global user.name #Mostra o usuário.
  3. git config --global user.email "user@email.com" #Define o email do usuário
  4. git config --global user.email #Mostra o email do usuário.
  5. git config --global core.editor "user editor" #Define o editor do usuário.
  6. git config --global core.editor #Mostra o editor do usuário.
  7. git config --list #Mostra as configurações globais
  8.  
  9. git init
  10. git add README.md
  11. git commit -m "first commit"
  12. git remote add origin https://github.com/userID/NovoProjeto
  13. git push -u origin master
  14. git log
  15. git add -A, git add *, git add .
  16. git commit -a -m "Commit"
  17.  
  18. git branch #Mostra as branchs do projeto
  19. git branch nova_branch #Cria uma nova branch
  20. git branch -v #Mostra para qual branch foi o último commit
  21. git branch -d nome_da_branch #Deleta a branch
  22. git checkout nome_da_branch #Muda para a branch
Add Comment
Please, Sign In to add comment