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
Começando com Git
Search
Carlos Alexandro Becker
March 06, 2014
Programming
1
3.9k
Começando com Git
Começando com Git @ II Joinville Software Meetup
Carlos Alexandro Becker
March 06, 2014
Tweet
Share
More Decks by Carlos Alexandro Becker
See All by Carlos Alexandro Becker
Building GoReleaser - from shell script to paid product
caarlos0
0
4k
Serving TUIs over SSH with Go
caarlos0
0
1.7k
construindo uma carreira com opensource
caarlos0
0
450
Introdução ao GoReleaser
caarlos0
0
1.2k
Intro to GoReleaser
caarlos0
0
1.2k
Intro to GoReleaser
caarlos0
0
1.6k
Gerenciando Projetos OpenSource
caarlos0
0
1.5k
GoReleaser: Lessons Learned (hacktoberfest)
caarlos0
0
1.9k
GoReleaser: Lessons Learned
caarlos0
0
2.6k
Other Decks in Programming
See All in Programming
釣り地図SNSにおける有料機能の実装
nokonoko1203
0
210
Introducing RemoteCompose: break your UI out of the app sandbox.
camaelon
2
520
pnpm に provenance のダウングレード を検出する PR を出してみた
ryo_manba
1
220
Researchlyの開発で参考にしたデザイン
adsholoko
0
120
GitHub Copilotを使いこなせ!/mastering_github_copilot!
kotakageyama
2
860
What’s Fair is FAIR: A Decentralised Future for WordPress Distribution
rmccue
0
140
AsyncSequenceとAsyncStreamのプロポーザルを全部読む!!
s_shimotori
1
260
マンガアプリViewerの大画面対応を考える
kk__777
0
460
「10分以内に機能を消せる状態」 の実現のためにやっていること
togishima
1
250
ボトムアップの生成AI活用を推進する社内AIエージェント開発
aku11i
0
1.5k
外接に惑わされない自システムの処理時間SLIをOpenTelemetryで実現した話
kotaro7750
0
230
Health Kit × Foundation Models でAIコーチを作ってみた
ryunakayama
0
100
Featured
See All Featured
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.6k
Producing Creativity
orderedlist
PRO
348
40k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.5k
Why You Should Never Use an ORM
jnunemaker
PRO
60
9.6k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Scaling GitHub
holman
463
140k
4 Signs Your Business is Dying
shpigford
186
22k
What's in a price? How to price your products and services
michaelherold
246
12k
Thoughts on Productivity
jonyablonski
73
4.9k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Leading Effective Engineering Teams in the AI Era
addyosmani
8
1k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
658
61k
Transcript
C O M E Ç A N D O C
O M
Carlos Alexandro Becker Software Engineer @ ContaAzul OpenSource guy
Blogs at carlosbecker.com Git user since 2010
C O M E Ç A N D O C
O M
POR QUE USAR GIT?
HISTÓRIA
EM 2005…
• Linux vs CVS/SVN/BitLocker • Patches por todos os lados
• Time distribuído • Desenvolvimento não linear • VCS's Lentos
POUQUÍSSIMA GENTE SE IMPORTA…
JÁ EM 2008…
None
None
VANTAGENS
•Rápido •Distribuído •Customizável
•Light branches •Code Review •Tests, Coverage e etc
None
GIT VS GITHUB Distributed Version Control System Web-based Git Hosting
Service
GIT VS SVN Nearly all operations are local Still working………………
http://goo.gl/VerooZ
CHECKOUT CLONE &
UPDATE PULL &
ADD ADD &
COMMIT PUSH &
$ SVN COMMIT
$ GIT COMMIT && GIT PUSH
LOG LOG DIFF DIFF STATUS STATUS BLAME BLAME &
MERGE REBASE ARCHIVE MV RM GREP RESET FETCH …
DAILY WORKFLOW
• Criar/Obter/Atualizar Repositório • Criar branch • Alterações + Commits
• Sincronizar com o Repositorio Remoto • Criar e mergear Pull Request
$ mkdir repo && cd $_ $ git init
$ git clone url $ cd repo
$ git checkout master $ git pull origin master
$ git checkout -b feature-xyz
$ git add changed-file.js $ git commit -m ‘changed a
file’
$ git push origin feature-xyz
None
None
None
None
$ git checkout master $ git pull origin master
$ echo "done"
None
PERGUNTAS?