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 (Meet.US())
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Patrício dos Santos
September 13, 2014
Programming
2
680
Git (Meet.US())
Apresentação usada no evento Meet.Us() - 13 de Setembro de 2014
Patrício dos Santos
September 13, 2014
Tweet
Share
More Decks by Patrício dos Santos
See All by Patrício dos Santos
Docker for Rubyists
psantos
1
37
Instalação do CentOS 7.0
psantos
0
33
Passos para a criação de um protótipo funcional
psantos
0
66
Git
psantos
0
210
Other Decks in Programming
See All in Programming
ぼくの開発環境2026
yuzneri
0
100
コントリビューターによるDenoのすゝめ / Deno Recommendations by a Contributor
petamoriken
0
200
CSC307 Lecture 02
javiergs
PRO
1
770
FOSDEM 2026: STUNMESH-go: Building P2P WireGuard Mesh Without Self-Hosted Infrastructure
tjjh89017
0
150
Oxlint JS plugins
kazupon
1
740
LLM Observabilityによる 対話型音声AIアプリケーションの安定運用
gekko0114
2
420
AIによるイベントストーミング図からのコード生成 / AI-powered code generation from Event Storming diagrams
nrslib
2
1.8k
カスタマーサクセス業務を変革したヘルススコアの実現と学び
_hummer0724
0
630
組織で育むオブザーバビリティ
ryota_hnk
0
170
責任感のあるCloudWatchアラームを設計しよう
akihisaikeda
3
160
インターン生でもAuth0で認証基盤刷新が出来るのか
taku271
0
190
MUSUBIXとは
nahisaho
0
130
Featured
See All Featured
Building AI with AI
inesmontani
PRO
1
680
Crafting Experiences
bethany
1
46
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
110
WCS-LA-2024
lcolladotor
0
450
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
50
A Soul's Torment
seathinner
5
2.2k
Scaling GitHub
holman
464
140k
Deep Space Network (abreviated)
tonyrice
0
45
Context Engineering - Making Every Token Count
addyosmani
9
650
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
930
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
7.9k
ラッコキーワード サービス紹介資料
rakko
1
2.2M
Transcript
A ferramenta indispensável na bagagem do programador
Quem Sou Eu? Patrício dos Santos Desenvolvedor – ITELnet –
Comunicações & Serviços, S.A. PHP (CakePHP), C# (Entity Framework), Ruby (Ruby on Rails) Android (Java) Git Entre outras... http://www.patriciodossantos.net https://github.com/PSantos10/
[email protected]
Comunidade AngoDev • Portal • Fórum • eLearning • Portal
de Empregos • Organização de Eventos • Apoiar os Programadores Angolanos http://www.angodev.com
Git – O que é? • Sistema de controle de
versão distribuído; • Sistema de Gestão de Código Fonte; • Rápido e Eficiente; • Escrito pelo Linus Torvalds • Inicialmente escrito para o desenvolvimento do Kernel Linux.
Principais vantagens • Controlo do Histórico • Trabalho em Equipa
• Produtividade • Branchs privadas • Segurança (Backup)
1. – Instalação e Configuração • Windows • http://git-scm.com/download/win •
Linux • http://git-scm.com/download/linux • sudo apt-get install git • Mac • http://git-scm.com/download/mac • brew install git
1.1. Instalação no Windows
1.2. Configurações Iniciais
We are Ready to Start!
2.1. Criando novo repositório git init
2.2. Copiar um repositório git clone c:\repositório_a git clone
[email protected]
:PSantos10/minha_pagina.git
Let’s do It!
3. Fluxo de trabalho • Working Directory • Index •
HEAD (Repository)
4. Adicionar ficheiro ao repositório git add index.php git add
* git commit –m “adicionando ficheiro index.php”
5. Git Status git status
6. .gitignore Exemplos: https://github.com/github/gitignore Gerador: http://gitignore.io/
Let’s do It!
7. Branchs git branch nome_branch git checkout nome_branch git checkout
–b nome_branch
Let’s do It!
8. Merging Git merge nome_branch git branch –d nome_branch git
branch –D nome_branch
Let’s do It!
9. Repositório Remoto
10. Criando conta no GitHub
10.1. Adicionar Repositório Remoto git remote add origin
[email protected]
:PSantos10/ minha_pagina.git
10.2. Enviando alterações para o rep. remoto git push origin
master
10.3. Actualizando o repositório local git pull origin master git
fetch origin master
Let’s do It!
11. Outros comandos git log git tag 1.0.0 1b2e1d63ff
12. Ferramentas Gráficas
Links Úteis • http://www.angodev.com (Portal / Fórum) • http://gitimmersion.com • http://www.codeschool.com/ • http://www.alura.com.br • http://webvisao.github.com
None
FIM Obrigado!