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
660
Other Decks in Programming
See All in Programming
速いWebフレームワークを作る
yusukebe
5
1.7k
ファインディ株式会社におけるMCP活用とサービス開発
starfish719
0
2.1k
Introducing ReActionView: A new ActionView-compatible ERB Engine @ Rails World 2025, Amsterdam
marcoroth
0
710
スケールする組織の実現に向けた インナーソース育成術 - ISGT2025
teamlab
PRO
2
170
Performance for Conversion! 分散トレーシングでボトルネックを 特定せよ
inetand
0
3.4k
FindyにおけるTakumi活用と脆弱性管理のこれから
rvirus0817
0
540
Deep Dive into Kotlin Flow
jmatsu
1
370
@Environment(\.keyPath)那么好我不允许你们不知道! / atEnvironment keyPath is so good and you should know it!
lovee
0
130
ユーザーも開発者も悩ませない TV アプリ開発 ~Compose の内部実装から学ぶフォーカス制御~
taked137
0
190
チームのテスト力を鍛える
goyoki
3
940
AI Agents: How Do They Work and How to Build Them @ Shift 2025
slobodan
0
110
Design Foundational Data Engineering Observability
sucitw
3
210
Featured
See All Featured
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
36
2.5k
Done Done
chrislema
185
16k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
6k
The Straight Up "How To Draw Better" Workshop
denniskardys
236
140k
Building a Scalable Design System with Sketch
lauravandoore
462
33k
[RailsConf 2023] Rails as a piece of cake
palkan
57
5.8k
A designer walks into a library…
pauljervisheath
207
24k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3k
Raft: Consensus for Rubyists
vanstee
140
7.1k
What's in a price? How to price your products and services
michaelherold
246
12k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.4k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
23
1.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!