Guia Interativo e Folha de Dicas de Comandos Git

Ferramentas de Desenvolvedor

Guia completo de comandos Git cobrindo operações de branch, commit, descarte, stash, repositórios remotos e rebase.

Initialize Git Repository

basic

Creates a new empty Git repository in the current folder.

git init

Check Status

basic

Displays the status of tracked, modified, and staged files.

git status

Stage All Changes

basic

Stages all modifications and untracked files for the next commit.

git add .

Gravar confirmação (Commit)

basic

Registra o instantâneo preparado com uma mensagem descritiva no histórico.

git commit -m "feat: your descriptive message"

Criar e alternar para branch

branch

Cria uma nova branch e alterna para ela imediatamente.

git checkout -b feature/new-feature

Listar todas as branches

branch

Lista todas as branches locais e remotas no repositório.

git branch -a

Mesclar branch (Merge)

branch

Mescla a branch especificada na branch ativa atual.

git merge feature/new-feature

Excluir branch local

branch

Exclui com segurança uma branch local mesclada (use -D para forçar).

git branch -d branch-name

Add Remote Origin

remote

Links a remote repository URL to the local repository as origin.

git remote add origin https://github.com/user/repo.git

Pull Changes from Remote

remote

Fetches and merges the latest commits from remote origin into local branch.

git pull origin main

Push to Remote

remote

Pushes local commits to the remote branch and sets upstream tracking.

git push -u origin main

Undo Last Commit (Keep Files)

undo

Rolls back the last commit while keeping modified code staged.

git reset --soft HEAD~1

Unstage File

undo

Removes a file from the staging area without discarding modifications.

git restore --staged <file>

Discard All Local Changes

undo

Discards all uncommitted changes in tracked files permanently.

git checkout -- .

Stash Uncommitted Changes

stash

Saves dirty working directory state temporarily for later use.

git stash

Apply & Drop Stash

stash

Restores the most recently stashed changes back to your working tree.

git stash pop

Cherry-pick Commit

advanced

Applies the exact changes from a specific commit into the current branch.

git cherry-pick <commit-hash>

Amend Last Commit

advanced

Modifies the most recent commit message or combines newly staged files into it.

git commit --amend -m "new message"

Pretty Git Log Graph

advanced

Visualizes commit history and branches in a concise terminal graph.

git log --oneline --graph --decorate
Apoio a Projeto Independente

Gostou do ToolsApp? Pague-nos um café

O ToolsApp funciona 100% no seu navegador, sem assinaturas e sem rastreamento de dados. Acreditamos que utilitários digitais essenciais devem ser livres e acessíveis para todos. Seu apoio nos ajuda a manter a plataforma e criar novas ferramentas!

100% No NavegadorGratuito para Todos

Como Usar?

1

Selecionar categoria

Escolha entre operações básicas, branches, reversão ou stash.

2

Encontrar cenário

Pesquise pelo objetivo que você deseja alcançar no Git.

3

Copiar comando

Copie o comando diretamente para executar no terminal.

Privacidade TotalTodos os cálculos e processamentos de arquivos ocorrem 100% localmente no seu navegador via JavaScript no lado do cliente.

Avaliações e Comentários de Usuários

Compartilhe sua experiência anonimamente. Moderado automaticamente por IA.

5.0
0 avaliações
5 / 5
0/500
Protegido pelo sistema de moderação automática do Groq AI

Avaliações Aprovadas (0)

Carregando avaliações...