https://github.com/professor-enoqueleal/git-commands
Repositório contendo comandos Git para referência dos alunos de TADS
https://github.com/professor-enoqueleal/git-commands
git
Last synced: about 1 year ago
JSON representation
Repositório contendo comandos Git para referência dos alunos de TADS
- Host: GitHub
- URL: https://github.com/professor-enoqueleal/git-commands
- Owner: professor-enoqueleal
- Created: 2023-03-07T23:59:38.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-23T22:11:27.000Z (almost 2 years ago)
- Last Synced: 2025-04-03T05:03:57.764Z (about 1 year ago)
- Topics: git
- Homepage: https://git-scm.com/docs
- Size: 5.86 KB
- Stars: 7
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Git commands
[Reference guides](https://git-scm.com/docs)
## List of all commands

### Getting and Creating Projects
```bash
# configura usuário
git config --global user.name "Fulano de Tal"
```
```bash
# configura e-mail
git config --global user.email fulano-de-tal@exemplo.br
```
```bash
# exibe as configurações atuais
git config --list
```
```bash
# inicializa um novo repositório git no diretório especificado
git init
```
```bash
# faz o clone de um repositório existe para sua workstation repository
git clone
```
### Basic Snapshotting
```bash
# mostra o status do seu repositório local
git status
```
```bash
# adiciona arquivos ao index
git add file-name
```
```bash
# faz o registro do/dos arquivo/arquivos adicionado no index contendo os metadados
git commit
```
```bash
# mostra quais foram as alterações dentro do arquivo
git diff
```
### Branching and Merging
```bash
# listar, criar ou deletar branch
git branch
```
```bash
# trocar de branch ou restaurar os arquivos que foram alterados
git checkout
```
```bash
# faz a junção de duas ou mais histórias / branch
git merge
```
```bash
# mostra os logs de commits
git log
```
```bash
# Guarde as alterações em um diretório de trabalho temporário
git stash
```
### Sharing and Updating Projects
```bash
# Atualize as referências locais com base no repositório remoto
git fetch
```
```bash
# Busca as alterações do repositório remoto e trás para o repositório legal
git pull
```
```bash
# Envia as alterações do repositório local para o repositório remoto
git push
```
```bash
# Gerenciar reposotórios rastreados
git remote
```