Skip to content

marcelobiao/Aprendendo-git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

Aprendendo git

Esse arquivo irá ter todos os comandos do curso Git

Comando iniciais

$ git config --global user.name "Marcelo Bião"
$ git config --global user.email "marcelobiao2@gmail.com"
$ git init
$ git status
$ git clone <url> # Clona o repositório da url  

Comandos de Log

$ git log
$ git log --full-diff -p README.md

Trabalhando com branchs

$ git checkout -b <name> # Cria e faz checkout na nova branch
$ git checkout <name> # Altera entre as branchs
$ git branch <name> # Cria uma nova branch
$ git checkout <name> # Alterna entre as branchs

Checkout

$ git checkout -- <file> #Desfaz as mudanças

Trabalhando com tags

$ git tag                               # Lista todas as tags
$ git tag -a v0.0.1 -m "Texto qualquer" # Adiciona uma nova tag
$ git show v0.0.1                       # Mostra conteudo da tag
$ git tag -d v0.0.1                     # Apaga uma tag

Primeiro push

$ git remote add origin <url>
$ git push -u origin master # apenas a primeira vez
```

# teste.

About

Repositório de teste.

Resources

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors