git
Diferenças
Aqui você vê as diferenças entre duas revisões dessa página.
| Ambos lados da revisão anteriorRevisão anteriorPróxima revisão | Revisão anterior | ||
| git [2024/12/09 14:23] – [Git Ignore] jdos | git [2025/03/27 17:20] (atual) – [Comandos Git] jdos | ||
|---|---|---|---|
| Linha 5: | Linha 5: | ||
| ^ Comandos | ^ Comandos | ||
| - | | git add . | adicionar | + | | git status | |
| + | | git add < | ||
| + | | git add . | adiciona todos os arquivos modificados como '' | ||
| + | | git commit |registrar | ||
| + | | git commit --amend| junta com o commit anterior, utilize com cuidado| | ||
| | git commit -m " | | git commit -m " | ||
| | git push origin main |subir mudanças no repositório | | git push origin main |subir mudanças no repositório | ||
| | git pull origin main |baixar mudanças para o repositório local | | | git pull origin main |baixar mudanças para o repositório local | | ||
| - | | git log | | | + | | git log | Logs list | |
| - | | git status | + | | git log --oneline |
| | git remote -v | | git remote -v | ||
| | git remote remove origin | | git remote remove origin | ||
| Linha 16: | Linha 20: | ||
| | git clone < | | git clone < | ||
| | git remote | | git remote | ||
| - | | | + | | git branch |
| ===== Git Ignore ===== | ===== Git Ignore ===== | ||
| - | Quais arquivos quer ignorar do projeto, coloque | + | Para ser ignorado pelo git, |
| + | coloque na pasta raiz o arquivo '' | ||
| + | //pode-se verificar se os arquivos estão sendo ignorado// antes mesmo de fazer o commit utilizando '' | ||
| <file .gitignore .gitignore> | <file .gitignore .gitignore> | ||
| - | temp/ | + | temp |
| arquivo.txt | arquivo.txt | ||
| *.temp | *.temp | ||
git.1733765022.txt.gz · Última modificação: por jdos
