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
66
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
350
Desmistificando a área de TI
juunegreiros
0
91
Como otimizar seu site com lighthouse e core web vitals
juunegreiros
0
440
Webpacker e a Jornada do Heroi
juunegreiros
0
37
Como modularizar seu front-end sem depender de um framework
juunegreiros
0
93
Sopa de Letrinhas CSS | Alphabet soup CSS
juunegreiros
1
85
Pensando logicamente: introdução à lógica de programação | Thinking logically: introduction to programming logic
juunegreiros
0
72
Carreiras em TI
juunegreiros
0
63
Javascript, um menino serelepe | Javascript, a serelepe guy
juunegreiros
0
290
Other Decks in Technology
See All in Technology
AI時代のAPI品質を支えるガードレール / API Guardrails for API quality in the AI era
yokawasa
1
130
Guerilla InnerSource in enterprises, during the AI hype
onenashev
PRO
0
150
When Does a Local Qwen Start to Break
morshoto
0
180
リージョンの壁を越える、 ちょっと変わったAWSサービスの話
falken
PRO
0
270
AIで仕事のやり方を変える
matsu7874
1
910
データエンジニアリングワークショップ:Auto LoaderとSparkで学ぶデータパイプライン構築
databricksjapan
PRO
0
190
PfEingのアプローチで働こう
rindrics
0
180
AI-DLCって実際どう? 〜聞きたいこと全部聞いてみる〜
news_it_enj
0
240
なぜSRE・セキュリティは評価されないのか?守りの組織を事業成長エンジンに変えた実践
cscengineer
PRO
3
2.3k
AI時代に、プロダクトの数だけ積み上がる所有コストをどうエンジニアリングするか / Engineering the Cost of Ownership
kzkmaeda
0
1k
『止めない』を設計する — 制約の中で、事業の根幹を支える判断
hiroyaterui
0
210
動画配信アプリでの Engage SDK 導入 — TVer Android が Play ストアにコンテンツを届けるまで
techtver
PRO
0
130
Featured
See All Featured
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.3k
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
450
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
520
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
440
What's in a price? How to price your products and services
michaelherold
247
13k
What does AI have to do with Human Rights?
axbom
PRO
1
2.4k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
970
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
490
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.4k
A Soul's Torment
seathinner
7
3.5k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.7k
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