DevTools

Cheatsheet Fork

Cliente Git rápido e intuitivo para Windows e Mac

Voltar às linguagens
Fork
20 cards encontrados
Categorias:
Versões:

Interface


3 cards
Atalhos principais
Ctrl + N      (novo repo / clonar)
Ctrl + O      (abrir repo)
Ctrl + Enter   (commit)
Ctrl + P      (push)
Ctrl + Shift + P (pull)
Ctrl + F      (pesquisar)

Atalhos essenciais.

Vistas
Commits    # histórico gráfico
Changes    # ficheiros alterados
Branches   # lista de ramos
Remotes    # repositórios remotos
Stashes    # stash list
Tags       # tags do repo

Painéis do Fork.

Diff e preview
Clique no ficheiro → diff inline
Side-by-side: botão no diff
Image diff: ver alterações visuais
Blame: clique direito → Blame

Visualizar diferenças.

Commits


4 cards
Commit
Ctrl + Enter   (commit)
Selecionar ficheiros (checkbox)
Mensagem + descrição
Amend: checkbox "Amend"

Criar commit.

Stage parcial
Clique no ficheiro → ver diff
Selecionar linhas/hunks específicos
Stage Selected Lines
Stage File / Unstage File

Commit parcial (por linhas).

Histórico interativo
Clique direito no commit:
→ Edit (reword)
→ Squash with previous
→ Fixup
→ Drop (apagar)
→ Reorder (arrastar)

Editar histórico.

Reverter e reset
Clique direito no commit:
→ Revert (commit inverso)
→ Reset branch to here
  Soft / Mixed / Hard
→ Create branch from here

Desfazer alterações.

Branches e Tags


3 cards
Criar e gerir
Ctrl + B        (novo branch)
Clique direito → New Branch
Checkout (duplo clique)
Delete / Rename
Push to remote

Operações em branches.

Tags
Clique direito no commit
→ Create Tag
Nome: v2.0.0
Mensagem (tag anotada)
Push: Push → incluir tags

Criar e enviar tags.

Comparar
Selecionar 2 commits/branches
→ Compare
Ver commits e ficheiros diferentes
Diff Against Current Branch

Comparar ramos.

Sincronização


3 cards
Push e Pull
Ctrl + P        (push)
Ctrl + Shift + P (pull)
Push → selecionar branches
Pull → Rebase (checkbox)
Prune remote branches

Sincronizar com remoto.

Fetch
Ctrl + T (fetch)
Fetch All Remotes
Auto-fetch: Settings → Repository
Ver remote changes sem merge

Obter refs remotas.

Remotos
Repository → Remotes
Add Remote (nome + URL)
Edit / Remove
Push/Pull para remoto específico

Gerir remotos.

Merge e Rebase


3 cards
Merge
Clique direito no branch
→ Merge into current branch
→ Squash commits
Fast-forward: opção em Settings
No-FF: forçar merge commit

Integrar branches.

Rebase
Clique direito no branch base
→ Rebase current branch
Interactive: editar/squash/reorder
Abort: barra de conflito → Abort

Rebase interativo.

Resolver conflitos
Conflito → barra amarela
→ Open in Merge Tool
3-way merge integrado
Accept Left / Right / Both
Mark as Resolved → Continue

Resolver conflitos.

Avançado


4 cards
Stash
Ctrl + Shift + S (stash)
Changes → Stash Changes
Apply / Pop / Drop
Incluir untracked: checkbox

Guardar alterações temporárias.

Cherry-pick
Clique direito no commit
→ Cherry Pick
Aplica commit noutra branch
Múltiplos: selecionar vários

Aplicar commits específicos.

Git Flow
Repository → Git Flow
Init / Start Feature
Start Release / Hotfix
Finish (merge + delete)
Integração nativa no Fork

Workflow Git Flow.

Submódulos e LFS
Submódulos: visíveis na tree
→ Init / Update / Open

Git LFS: suporte nativo
→ Ficheiros grandes rastreados
→ LFS tab no diff

Submódulos e ficheiros grandes.