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
81
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Git
Talk by @erickmendonca
GDG Aracaju
March 07, 2015
More Decks by GDG Aracaju
See All by GDG Aracaju
Como aumentar a sua produtividade no Android Studio
gdgaracaju
0
170
Firebase e Android
gdgaracaju
0
100
Aplicações em Asp.NET WebAPI 2.2 e AngularJS
gdgaracaju
2
130
Android + Chromecast
gdgaracaju
1
67
Introdução ao Android Wear
gdgaracaju
0
47
Backend para aplicativos mobile
gdgaracaju
0
44
Segurança no Android
gdgaracaju
0
47
Android Fundamentals Lesson 3 review
gdgaracaju
0
47
Suporte múltiplas telas no Android
gdgaracaju
0
160
Other Decks in Programming
See All in Programming
AI駆動開発を妨げる技術的負債の解消アプローチ / ai-refactoring-approach
minodriven
15
8k
Go1.27で導入されるジェネリクスメソッドでできること
mackee
0
210
さぁV100、メモリをお食べ・・・
nilpe
0
160
作って学ぶ、 JSX (TSX) ランタイムの基本
syumai
7
1.7k
LLM本来の能力を解き放つサンドボックス技術とAI民主化への適用
yukukotani
3
4.7k
Strategic Design in the Frontend: Moduliths & Micro Frontends @DDDEurope
manfredsteyer
PRO
0
130
フロントエンドとバックエンドで「1文字」を揃えよう
youkidearitai
PRO
0
770
TypeScript+Orvalで実現する型安全かつ堅牢でスケーラブルなマルチチャネル通知基盤 / TSKaigi Night talks ~after conference~
d0riven
0
370
ローカルLLMでどこまでコードが書けるか -拡張版 / How much code can be written on a local LLM Extended
kishida
12
4.5k
Observability in Practice:Grafana 與 Edge Device SRE 的那些事
blueswen
0
180
ふつうのFeature Flag実践入門
irof
8
4.2k
Contextとはなにか
chiroruxx
1
380
Featured
See All Featured
Exploring anti-patterns in Rails
aemeredith
3
430
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
450
Large-scale JavaScript Application Architecture
addyosmani
515
110k
What does AI have to do with Human Rights?
axbom
PRO
1
2.2k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
250
Music & Morning Musume
bryan
47
7.3k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.5k
The untapped power of vector embeddings
frankvandijk
2
1.8k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.3k
The Limits of Empathy - UXLibs8
cassininazir
1
370
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
380
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
400
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!