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
2
650
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
36
Instalação do CentOS 7.0
psantos
0
32
Passos para a criação de um protótipo funcional
psantos
0
63
Git
psantos
0
200
Other Decks in Programming
See All in Programming
TanStack DB ~状態管理の新しい考え方~
bmthd
2
260
大規模FlutterプロジェクトのCI実行時間を約8割削減した話
teamlab
PRO
0
490
ゲームの物理
fadis
5
1.5k
マイコンでもRustのtestがしたい その2/KernelVM Tokyo 18
tnishinaga
2
2.3k
『リコリス・リコイル』に学ぶ!! 〜キャリア戦略における計画的偶発性理論と変わる勇気の重要性〜
wanko_it
1
580
モバイルアプリからWebへの横展開を加速した話_Claude_Code_実践術.pdf
kazuyasakamoto
0
230
新世界の理解
koriym
0
140
Infer入門
riru
4
1.6k
AIエージェント開発、DevOps and LLMOps
ymd65536
1
320
Kiroの仕様駆動開発から見えてきたAIコーディングとの正しい付き合い方
clshinji
1
130
兎に角、コードレビュー
mitohato14
0
140
Terraform やるなら公式スタイルガイドを読もう 〜重要項目 10選〜
hiyanger
13
3.2k
Featured
See All Featured
BBQ
matthewcrist
89
9.8k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
183
54k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
6k
Automating Front-end Workflow
addyosmani
1370
200k
Speed Design
sergeychernyshev
32
1.1k
Making the Leap to Tech Lead
cromwellryan
134
9.5k
Testing 201, or: Great Expectations
jmmastey
45
7.6k
VelocityConf: Rendering Performance Case Studies
addyosmani
332
24k
Making Projects Easy
brettharned
117
6.3k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
33
2.4k
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!