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
Patrício dos Santos
September 13, 2014
Programming
720
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Git (Meet.US())
Apresentação usada no evento Meet.Us() - 13 de Setembro de 2014
Patrício dos Santos
September 13, 2014
More Decks by Patrício dos Santos
See All by Patrício dos Santos
Docker for Rubyists
psantos
1
45
Instalação do CentOS 7.0
psantos
0
38
Passos para a criação de um protótipo funcional
psantos
0
72
Git
psantos
0
210
Other Decks in Programming
See All in Programming
ALB ログから Trace を気合で繋げる技術
fohte
7
880
AIは賢い。でも実行環境は? CLIおじさんがAI時代に伝えたいこと ~ CLIおじさんがAI時代に伝えたいこと ~
curekoshimizu
1
150
高専キャリア LT 発表内容
crysta1221
6
5.5k
[KotlinConf Extended South Korea 2026] KotlinConf 2026 발표자 후기
wisemuji
0
100
The Good Stuff, Not the Slop: Engineering High-Quality Android Apps with Modern AI Tooling
danybony
1
190
まだ間に合う!今年の夏こそSchemeのマクロ展開器を完全理解!
omasanori
0
630
週末にAI-DLCを本気で回したら$1,600溶けた
hbashimizu
0
130
GKE アップグレード前に知っておきたい Blue/Green と PDB の関係
stkk
0
150
AIと壁打ちしながら進めるコスト管理
fufuhu
2
1.9k
初めての模倣学習とVLA
natsutan
0
490
AWS DevOps Agentで インシデント対応をAIに任せたい
honmarkhunt
6
2.2k
自分的「カンファレンスの楽しみ方」
syumai
0
190
Featured
See All Featured
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
320
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
490
Faster Mobile Websites
deanohume
310
32k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
560
Believing is Seeing
oripsolob
1
210
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
220
sira's awesome portfolio website redesign presentation
elsirapls
0
400
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
590
Technical Leadership for Architectural Decision Making
baasie
3
550
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.6k
Evolving SEO for Evolving Search Engines
ryanjones
0
280
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
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!