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
640
Other Decks in Programming
See All in Programming
「Cursor/Devin全社導入の理想と現実」のその後
saitoryc
0
390
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
310
Code as Context 〜 1にコードで 2にリンタ 34がなくて 5にルール? 〜
yodakeisuke
0
110
PHPで始める振る舞い駆動開発(Behaviour-Driven Development)
ohmori_yusuke
2
230
アンドパッドの Go 勉強会「 gopher 会」とその内容の紹介
andpad
0
270
Beyond Portability: Live Migration for Evolving WebAssembly Workloads
chikuwait
0
400
技術同人誌をMCP Serverにしてみた
74th
1
440
Node-RED を(HTTP で)つなげる MCP サーバーを作ってみた
highu
0
110
エンジニア向け採用ピッチ資料
inusan
0
170
Bytecode Manipulation 으로 생산성 높이기
bigstark
2
380
DroidKnights 2025 - 다양한 스크롤 뷰에서의 영상 재생
gaeun5744
3
330
Kotlin エンジニアへ送る:Swift 案件に参加させられる日に備えて~似てるけど色々違う Swift の仕様 / from Kotlin to Swift
lovee
1
260
Featured
See All Featured
Embracing the Ebb and Flow
colly
86
4.7k
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
The Language of Interfaces
destraynor
158
25k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
20
1.3k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
281
13k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
138
34k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.7k
For a Future-Friendly Web
brad_frost
179
9.8k
Art, The Web, and Tiny UX
lynnandtonic
299
21k
Producing Creativity
orderedlist
PRO
346
40k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
17
950
Why Our Code Smells
bkeepers
PRO
337
57k
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!