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
63
0
Share
Introdução ao Git
Juliana Negreiros
July 20, 2020
More Decks by Juliana Negreiros
See All by Juliana Negreiros
Um guia para começar no mundo Front End
juunegreiros
0
340
Desmistificando a área de TI
juunegreiros
0
86
Como otimizar seu site com lighthouse e core web vitals
juunegreiros
0
440
Webpacker e a Jornada do Heroi
juunegreiros
0
35
Como modularizar seu front-end sem depender de um framework
juunegreiros
0
92
Sopa de Letrinhas CSS | Alphabet soup CSS
juunegreiros
1
81
Pensando logicamente: introdução à lógica de programação | Thinking logically: introduction to programming logic
juunegreiros
0
67
Carreiras em TI
juunegreiros
0
61
Javascript, um menino serelepe | Javascript, a serelepe guy
juunegreiros
0
280
Other Decks in Technology
See All in Technology
[Oracle TechNight#99] 生成AI時代のAI/ML入門 ~ AIとオラクルデータベースの関係 (前半)
oracle4engineer
PRO
1
210
「QA=テスト」「シフトレフト=スクラムイベントの参加者の一員」の呪縛を解く。アジャイルな開発を止めないために、10Xで挑んだ「右側のしわ寄せ」解消記 #scrumniigata
nihonbuson
PRO
3
670
コミュニティ・勉強会を作るのは目的じゃない
ohmori_yusuke
0
280
20260423_ハドソンのエロゲを追え_レトロゲーム
poropinai1966
0
110
CyberAgent YJC Connect
shimaf4979
1
110
Building a Study Buddy AI Agent from Scratch: From Passive Chatbots to Autonomous Systems
itchimonji
0
120
The 7 pitfalls of AI
ufried
0
180
FessのAI検索モード:検索システムとLLMへの取り組み
marevol
0
190
[Oracle TechNight#99] 生成AI時代のAI/ML入門 ~ AIとオラクルデータベースの関係 (後半)
oracle4engineer
PRO
2
200
UIライブラリに依存しすぎないReact Native設計を目指して
grandbig
0
190
需要創出(Chatwork)×供給(BPaaS) フライホイールとMoat 実行能力の最適配置とAI戦略
kubell_hr
0
1.9k
Fabric MCPの紹介と使い分け
ryomaru0825
1
110
Featured
See All Featured
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
290
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
118
110k
Why Our Code Smells
bkeepers
PRO
340
58k
Automating Front-end Workflow
addyosmani
1370
200k
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
100
Paper Plane
katiecoart
PRO
1
49k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
1.3k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.2k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
1k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
A Tale of Four Properties
chriscoyier
163
24k
WENDY [Excerpt]
tessaabrams
10
37k
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