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
36
Instalação do CentOS 7.0
psantos
0
32
Passos para a criação de um protótipo funcional
psantos
0
63
Git (Meet.US())
psantos
2
650
Other Decks in Programming
See All in Programming
オープンセミナー2025@広島LT技術ブログを続けるには
satoshi256kbyte
0
120
Introduction to Git & GitHub
latte72
0
120
CEDEC 2025 『ゲームにおけるリアルタイム通信への QUIC導入事例の紹介』
segadevtech
3
950
レガシープロジェクトで最大限AIの恩恵を受けられるようClaude Codeを利用する
tk1351
2
560
STUNMESH-go: Wireguard NAT穿隧工具的源起與介紹
tjjh89017
0
380
Infer入門
riru
4
1.6k
バイブコーディング × 設計思考
nogu66
0
120
技術的負債で信頼性が限界だったWordPress運用をShifterで完全復活させた話
rvirus0817
1
2k
Microsoft Orleans, Daprのアクターモデルを使い効率的に開発、デプロイを行うためのSekibanの試行錯誤 / Sekiban: Exploring Efficient Development and Deployment with Microsoft Orleans and Dapr Actor Models
tomohisa
0
200
kiroでゲームを作ってみた
iriikeita
0
180
Kiroの仕様駆動開発から見えてきたAIコーディングとの正しい付き合い方
clshinji
1
130
TDD 実践ミニトーク
contour_gara
0
130
Featured
See All Featured
Scaling GitHub
holman
462
140k
Code Reviewing Like a Champion
maltzj
525
40k
Side Projects
sachag
455
43k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
110
20k
Building a Scalable Design System with Sketch
lauravandoore
462
33k
A Tale of Four Properties
chriscoyier
160
23k
The Straight Up "How To Draw Better" Workshop
denniskardys
236
140k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.5k
Thoughts on Productivity
jonyablonski
69
4.8k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3.4k
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!