https://github.com/rtenorioh/comandos-git
Comandos do GIT
https://github.com/rtenorioh/comandos-git
Last synced: 4 months ago
JSON representation
Comandos do GIT
- Host: GitHub
- URL: https://github.com/rtenorioh/comandos-git
- Owner: rtenorioh
- Created: 2022-02-15T21:45:25.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-15T22:16:14.000Z (over 3 years ago)
- Last Synced: 2025-01-01T21:45:18.956Z (5 months ago)
- Size: 2.93 KB
- Stars: 2
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Comandos do GIT
#### INICIAR O REPOSITÓRIO GIT NO PROJETO
* `git init`#### ADICIONA TODOS OS ARQUIVOS PARA SEREM COMMITADOS
* `git add .`#### FAZ COMMIT COM UMA MENSAGEM
* `git commit -m "Mensagem"`#### ADICIONA E FAZ COMMIT COM UMA MENSAGEM
* `git commit -am "Mensagem"`#### VER STATUS DOS ARQUIVOS
* `git status`#### VER AS ULTIMAS MODIFICACOES NOS ARQUIVOS STAGED
* `git diff --staged`#### DAR UNSTAGE NO ARQUIVO
* `git reset `#### VERIFICA LOG DOS ULTIMOS COMMITS
* `git log`
#### LISTA DE ARQUIVOS ALTERADOS EM DETERMINADO COMMIT:
* `git show --stat COMMIT_ID`#### ADICIONANDO REPOSITORIO REMOTO CHAMADO ORIGIN
* `git remote add origin https://github.com/rtenorioh/comandos-git.git`#### ENVIA OS ULTIMOS COMMITS DO LOCAL MASTER PARA O REMOTO ORIGIN
* `git push -u origin master`#### BAIXA AS ATUALIZACOES DO REMOTO ORIGIN PARA O LOCAL MASTER
* `git pull origin master`#### VERIFICA AS ULTIMAS DIFERENÇAS NOS ARQUIVOS
* `git diff HEAD`#### VOLTA O ARQUIVO COMO ESTAVA NO ULTIMO COMMIT
* `git checkout -- `#### CRIA UMA NOVA BRANCH
* `git branch `#### MUDAR PARA O SEGUINTE BRANCH
* `git checkout `#### REMOVE O ARQUIVO E DA STAGE NESSA REMOCAO
* `git rm ''`#### APAGAR BRANCH
* `git branch -d `#### ADICIONA TAG
* `git tag -a v1.4 -m 'my version 1.4'`