Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Git
Search
GDG Aracaju
March 07, 2015
Programming
0
75
Git
Talk by @erickmendonca
GDG Aracaju
March 07, 2015
Tweet
Share
More Decks by GDG Aracaju
See All by GDG Aracaju
Como aumentar a sua produtividade no Android Studio
gdgaracaju
0
150
Firebase e Android
gdgaracaju
0
96
Aplicações em Asp.NET WebAPI 2.2 e AngularJS
gdgaracaju
2
120
Android + Chromecast
gdgaracaju
1
62
Introdução ao Android Wear
gdgaracaju
0
38
Backend para aplicativos mobile
gdgaracaju
0
39
Segurança no Android
gdgaracaju
0
38
Android Fundamentals Lesson 3 review
gdgaracaju
0
38
Suporte múltiplas telas no Android
gdgaracaju
0
140
Other Decks in Programming
See All in Programming
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
940
Angular-Apps smarter machen mit Gen AI: Lokal und offlinefähig - Hands-on Workshop!
christianliebel
PRO
0
130
生成 AI 時代のスナップショットテストってやつを見せてあげますよ(α版)
ojun9
0
300
[PHPerKaigi 2026]PHPerKaigi2025の企画CodeGolfが最高すぎて社内で内製して半年運営して得た内製と運営の知見
ikezoemakoto
0
260
どんと来い、データベース信頼性エンジニアリング / Introduction to DBRE
nnaka2992
1
330
仕様漏れ実装漏れをなくすトレーサビリティAI基盤のご紹介
orgachem
PRO
7
3k
脱 雰囲気実装!AgentCoreを良い感じにWEBアプリケーションに組み込むために
takuyay0ne
3
380
GoのDB アクセスにおける 「型安全」と「柔軟性」の両立 - Bob という選択肢
tak848
0
270
PHP でエミュレータを自作して Ubuntu を動かそう
m3m0r7
PRO
2
130
Migration to Signals, Signal Forms, Resource API, and NgRx Signal Store @Angular Days 03/2026 Munich
manfredsteyer
PRO
0
130
技術検証結果の整理と解析をAIに任せよう!
keisukeikeda
0
130
OTP を自動で入力する裏技
megabitsenmzq
0
120
Featured
See All Featured
Agile that works and the tools we love
rasmusluckow
331
21k
We Have a Design System, Now What?
morganepeng
55
8k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
330
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
150
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
1.9k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
840
For a Future-Friendly Web
brad_frost
183
10k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
118
110k
The Pragmatic Product Professional
lauravandoore
37
7.2k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Paper Plane (Part 1)
katiecoart
PRO
0
5.8k
Transcript
Git Erick Mendonça
Sobre mim GitHub @erickmendonca Google+ +ErickMendonca
Agenda Git • O que é • Como usar?
O que é? • Controle de versão distribuído • Gratuito
e open source • Inicialmente desenvolvido por Linus Torvalds • Licença: GNU GPL v2 • Lançado em 07 de abril de 2005
Criando, usando e visualizando um repositório Git pela linha de
comando Básico
git init O comando git init inicia um novo repositório.
Se não for informada uma pasta, ele cria no diretório atual! git init <pasta>
None
git clone O comando git clone cria uma cópia local
de um repositório Git. É o método mais comum de obter o código de alguém! git clone <repositório> <pasta>
None
git config O comando git config te permite alterar algumas
configurações de sua instalação Git. git config <opções>
None
git add O comando git add te permite selecionar quais
arquivos serão salvos no controle de versão. git add <arquivo/pasta>
None
git commit O comando git commit pega os arquivos selecionados
e os salvam no histórico do projeto. git commit -m <mensagem>
None
git status O comando git status mostra o estado atual
da pasta de trabalho. git status
None
git log O comando git log permite inspecionar o histórico
do projeto. git log <opções>
None
git checkout O comando git checkout possui vários usos: checar
arquivos, commits e branches. git checkout <commit/branch>
None
None
git revert O comando git revert desfaz um commit salvo,
mas sem alterar o histórico do projeto. git revert <commit>
None
git reset O comando git reset desfaz alterações em arquivos
na pasta de trabalho. git reset <opções> <arquivo>
None
git clean O comando git clean remove arquivos que não
estão no repositório da pasta de trabalho. git clean <opções>
None
git branch O comando git branch permite criar ambientes de
desenvolvimento isolados dentro do mesmo repositório. git branch <nome>
None
git merge O comando git merge é uma forma poderosa
de integrar mudanças em branches diferentes. git merge <opções> <branch>
None
git commit --amend A opção --amend permite que você possa
refazer o último commit, corrigindo algum problema ou adicionando alguma coisa. git commit --amend
None
git rebase O comando git rebase permite mover branches, alterando
o histórico para que seja mais linear. git rebase <base>
None
None
None
None
None
None
Repositórios remotos
git remote O comando git remote permite gerenciar as conexões
remotas do seu repositório. git remote <opções>
None
git fetch O comando git fetch baixa uma branch de
outro repositório remoto, como todos os commits e arquivos. git fetch <remoto> <branch>
None
git pull O comando git pull é uma automatização: ele
faz o fetch do repo remoto e o merge com o branch atual. git pull <opções> <remoto>
None
git push O comando git push move uma branch local
para outro repositório. Envia o seu código para outro lugar! git push <remoto> <branch>
None
Workflows
None
None
None
Obrigado!