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
Introdução ao Git
Search
Juliana Negreiros
July 20, 2020
Technology
0
50
Introdução ao Git
Juliana Negreiros
July 20, 2020
Tweet
Share
More Decks by Juliana Negreiros
See All by Juliana Negreiros
Um guia para começar no mundo Front End
juunegreiros
0
330
Desmistificando a área de TI
juunegreiros
0
67
Como otimizar seu site com lighthouse e core web vitals
juunegreiros
0
430
Webpacker e a Jornada do Heroi
juunegreiros
0
22
Como modularizar seu front-end sem depender de um framework
juunegreiros
0
85
Sopa de Letrinhas CSS | Alphabet soup CSS
juunegreiros
1
75
Pensando logicamente: introdução à lógica de programação | Thinking logically: introduction to programming logic
juunegreiros
0
56
Carreiras em TI
juunegreiros
0
53
Javascript, um menino serelepe | Javascript, a serelepe guy
juunegreiros
0
200
Other Decks in Technology
See All in Technology
TAMとre:Capセキュリティ編 〜拡張脅威検出デモを添えて〜
fujiihda
1
180
データマネジメントのトレードオフに立ち向かう
ikkimiyazaki
3
300
30分でわかる『アジャイルデータモデリング』
hanon52_
9
2.5k
AndroidXR 開発ツールごとの できることできないこと
donabe3
0
120
エンジニアのためのドキュメント力基礎講座〜構造化思考から始めよう〜(2025/02/15jbug広島#15発表資料)
yasuoyasuo
16
6.3k
株式会社EventHub・エンジニア採用資料
eventhub
0
4.2k
エンジニアの育成を支える爆速フィードバック文化
sansantech
PRO
3
990
データの品質が低いと何が困るのか
kzykmyzw
6
1.1k
急成長する企業で作った、エンジニアが輝ける制度/ 20250214 Rinto Ikenoue
shift_evolve
2
1.1k
インフラをつくるとはどういうことなのか、 あるいはPlatform Engineeringについて
nwiizo
5
2.4k
技術的負債解消の取り組みと専門チームのお話 #技術的負債_Findy
bengo4com
1
1.2k
SA Night #2 FinatextのSA思想/SA Night #2 Finatext session
satoshiimai
1
130
Featured
See All Featured
The Language of Interfaces
destraynor
156
24k
Producing Creativity
orderedlist
PRO
343
39k
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
Embracing the Ebb and Flow
colly
84
4.6k
A better future with KSS
kneath
238
17k
Building a Scalable Design System with Sketch
lauravandoore
460
33k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
160
15k
BBQ
matthewcrist
86
9.5k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
233
17k
Optimising Largest Contentful Paint
csswizardry
34
3.1k
Building an army of robots
kneath
302
45k
Transcript
Introdução ao Git
O que é o Git?
Sistema de versionamento de código ou VCS (Version Control System)
O que um VCS faz?
Provê um histórico de mudanças
Provê um histórico de mudanças Permite voltar a um estado
anterior
Provê um histórico de mudanças Permite voltar a um estado
anterior Oferece suporte para o desenvolvimento paralelo
Indo mais além com o trabalho em equipe Plataformas Gitlab
Github Bitbucket
Por que versionar o meu código?
Reverter mudanças
Ter informações sobre o processo de desenvolvimento
Algumas perguntas que podem ser respondidas através do Git •
O que mudou? • Como o bug foi resolvido? • Quem fez as mudanças? • O que foi feito há um mês?
Unificar versões do desenvolvimento em paralelo
Evitar perdas e concertar acidentes
Fluxo do git
Repositório
Branch
Main
Commit
Main
Árvore
Main Secondary
Merge
Main Secondary
Rebase + merge
Main Secondary
Fluxo de trabalho individual
Inicializar o git git init
Clonar um repositório git clone
Criar uma branch para trabalhar git checkout -b nome-da-branch
Decidir quais alterações serão salvas git add "arquivo.js"
Criar o commit git commit
Subir as alterações git push origin nome-da-branch
Fluxo de trabalho coletivo
Abrir Pull Request
Abrir Pull Request
Abrir Pull Request
Abrir Pull Request
PR apontando para a branch certa
PR apontando para a branch certa
Revisar PR (importante!!!)
Revisar PR (importante!!!!)
Revisar PR (importante!!!!)
Mergear PR
Mergear PR
Issues
Issues
Projects
Projects
Automatizações
None
None
Deploy
Deploy
Integração Contínua e Desenvolvimento Contínuo (CI/CD)
Testes
Run Jest
Padronização
Super Linter
Utilidades
Arquivos
git add arquivo.js git rm arquivo.js
git stash git stash pop
git checkout -- arquivo.js
Mudanças
git diff
git log --oneline
git reflog git reset hashDoCommit
git commit --amend git push --force-with-lease
Branches
git checkout branch-alvo git branch -m novo-nome
git branch -d nomedabranch
- Documentação Github Actions - Documentação Git - Git -
the simple guide - Oh Shit, Git
Obrigada! @juunegreiros