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
Felipe Renan
June 06, 2018
Programming
3
60
Git
Introdução ao Git e Github.
Felipe Renan
June 06, 2018
Tweet
Share
More Decks by Felipe Renan
See All by Felipe Renan
Elixir - Tic Tac Toe
feliperenan
0
44
Elixir metaprogramming
feliperenan
0
43
Other Decks in Programming
See All in Programming
Practical Tips and Tricks for Working with Compose Multiplatform Previews (mDevCamp 2025)
stewemetal
0
120
Julia という言語について (FP in Julia « SIDE: F ») for 関数型まつり2025
antimon2
3
900
XSLTで作るBrainfuck処理系
makki_d
0
180
try-catchを使わないエラーハンドリング!? PHPでResult型の考え方を取り入れてみよう
kajitack
3
490
漸進。
ssssota
0
1.8k
〜可視化からアクセス制御まで〜 BigQuery×Looker Studioで コスト管理とデータソース認証制御する方法
cuebic9bic
3
320
カクヨムAndroidアプリのリブート
numeroanddev
0
400
型付きアクターモデルがもたらす分散シミュレーションの未来
piyo7
0
740
Effect の双対、Coeffect
yukikurage
4
1.3k
Go Modules: From Basics to Beyond / Go Modulesの基本とその先へ
kuro_kurorrr
0
110
統一感のある Go コードを生成 AI の力で手にいれる
otakakot
0
2.9k
Javaのルールをねじ曲げろ!禁断の操作とその代償から学ぶメタプログラミング入門 / A Guide to Metaprogramming: Lessons from Forbidden Techniques and Their Price
nrslib
3
1.9k
Featured
See All Featured
Why Our Code Smells
bkeepers
PRO
337
57k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.9k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
30
2.1k
GraphQLの誤解/rethinking-graphql
sonatard
71
11k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
26k
Designing for humans not robots
tammielis
253
25k
Large-scale JavaScript Application Architecture
addyosmani
512
110k
Facilitating Awesome Meetings
lara
54
6.4k
jQuery: Nuts, Bolts and Bling
dougneiner
63
7.8k
A Tale of Four Properties
chriscoyier
159
23k
Code Review Best Practice
trishagee
68
18k
Building Better People: How to give real-time feedback that sticks.
wjessup
367
19k
Transcript
Carregando…
Felipe Renan feliperenan @feeliperenan
None
None
O que é versionamento?
Em algum momento nós já versionamos algo...
Trabalho
Trabalho Trabalho_final
Trabalho Trabalho_final Trabalho_agora_vai
None
None
Softwares usados para versionamento
História do GIT
Linus Torvalds
Primeiro commit do Git
Alguns conceitos essenciais 16
As operações são efetuadas localmente 17
Git tem integridade 18
O Git, geralmente apenas adiciona dados 19
Git != Github 20
21
Fluxo básico
Adicionar / Modificar arquivos
Selecionar arquivos que entrarão no Commit
“Commitar”
Princípais comandos git init git status git add <arquivo> git
commit git log git push git pull git checkout
Hora do show :)
Branchs
O que são branchs?
Commit 1 Master
Commit 1 Commit 2 Master
Commit 1 Commit 2 Master Commit 3
$ git branch new-branch
Commit 1 Commit 2 Master Commit 3 new-branch
$ git checkout new-branch
Commit 1 Commit 2 Master Commit 3 new-branch Commit 4
Commit 1 Commit 2 Master Commit 3 new-branch Commit 4
Commit 5
$ git checkout master
$ git merge new-branch
Commit 1 Commit 2 Master Commit 3 new-branch Commit 4
Merge Commit Commit 5
Porque devemos utilizar branchs?
Facilita a organização do projeto em equipes
Ajuda a organizar o histórico do Git
Facilita a revisão do trabalho
Dicas
https://github.com/nvie/gitflow
http://ohshitgit.com/
https://github.com/github/hub
Referências • http://ericsink.com/vcbe/html/history_of_version_control.html • http://www.catb.org/~esr/writings/version-control/version-control.html • https://git-scm.com • https://www.linuxfoundation.org/blog/10-years-of-git-an-interview-with- git-creator-linus-torvalds/
Obrigado :)