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
Patrício dos Santos
October 04, 2013
Programming
0
200
Git
Git presentation
Patrício dos Santos
October 04, 2013
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
64
Git (Meet.US())
psantos
2
660
Other Decks in Programming
See All in Programming
All About Angular's New Signal Forms
manfredsteyer
PRO
0
140
開発生産性を上げるための生成AI活用術
starfish719
3
870
Swift Concurrency - 状態監視の罠
objectiveaudio
2
520
あなたとKaigi on Rails / Kaigi on Rails + You
shimoju
0
140
Introducing ReActionView: A new ActionView-Compatible ERB Engine @ Kaigi on Rails 2025, Tokyo, Japan
marcoroth
3
1k
ポスターセッション: 「まっすぐ行って、右!」って言ってラズパイカーを動かしたい 〜生成AI × Raspberry Pi Pico × Gradioの試作メモ〜
komofr
0
1.3k
ALL CODE BASE ARE BELONG TO STUDY
uzulla
18
3.4k
バッチ処理を「状態の記録」から「事実の記録」へ
panda728
PRO
0
160
育てるアーキテクチャ:戦い抜くPythonマイクロサービスの設計と進化戦略
fujidomoe
1
170
Building, Deploying, and Monitoring Ruby Web Applications with Falcon (Kaigi on Rails 2025)
ioquatix
4
2.1k
Things You Thought You Didn’t Need To Care About That Have a Big Impact On Your Job
hollycummins
0
220
Devoxx BE - Local Development in the AI Era
kdubois
0
130
Featured
See All Featured
Optimising Largest Contentful Paint
csswizardry
37
3.4k
Documentation Writing (for coders)
carmenintech
75
5.1k
The Language of Interfaces
destraynor
162
25k
A better future with KSS
kneath
239
18k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
252
21k
Product Roadmaps are Hard
iamctodd
PRO
54
11k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
9
590
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Typedesign – Prime Four
hannesfritz
42
2.8k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
620
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
Transcript
A ferramenta indispensável na bagagem do programador
Quem Sou Eu? Patrício dos Santos Desenvolvedor Web: PHP, Ruby
on Rails Desktop: C# Entre outros… http://www.patriciodossantos.net https://github.com/PSantos10/
[email protected]
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.
1. – Instalação e Configuração • Windows • http://git-scm.com/download/win •
Linux • http://git-scm.com/download/linux • Mac • http://git-scm.com/download/mac
1.1. Instalação no Windows
1.2. Configurações Iniciais
We are Ready to Start!
2.1. Criando novo repositório git init git init
2.2. Copiar um repositório git clone c:\repositório_a git clone c:\repositório_a
git clone
[email protected]
:PSantos10/minha_pagina.git 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
index.php git add * git add * git commit –m “adicionando ficheiro index.php” git commit –m “adicionando ficheiro index.php”
5. Git Status git status git status
6. .gitignore Exemplos: https://github.com/github/gitignore Gerador: http://gitignore.io/
Let’s do It!
7. Repositório Remoto
7.1. Adicionar Repositório Remoto git remote add origin
[email protected]
:PSantos10/minha_pagina.git git
remote add origin
[email protected]
:PSantos10/minha_pagina.git
7.2. Enviando alterações para o rep. remoto git push origin
master git push origin master
7.3. Actualizando o repositório local git pull git pull
Let’s do It!
8. Outros comandos git merge <branch> git merge <branch> git
checkout –b <new_branch> git log git log git checkout <new_branch> git checkout <new_branch> git tag 1.0.0 1b2e1d63ff git tag 1.0.0 1b2e1d63ff
Let’s do It!
9. Ferramentas Gráficas
None
FIM Obrigado!