dicasgit 2

Dicas git

comentario e commit

git config --list git config --global user.name git config --global user.email

clonar o repositório git clone https://github.com/marcospds/dicasgit.git

git init

git status - falta enviar(push), falta baixar(pull), current branch

git log git log -3

echo > teste.txt

git add --all

git reset teste.txt

git add teste.txt

git push

git fetch - só atualiza, mas não faz merge

git pull

git mergetool -y

git checkout master

git checkout -f master

git reset --hard HEAD

configurar editor de comentário

git checkout 6b2db8747fa3ee465e0928c757963dfbdd1e4600

git difftool 6b2db8747fa3ee465e0928c757963dfbdd1e4600