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 e GitHub para iniciantes
Search
Gustavo Mathias
July 19, 2015
Programming
110
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Git e GitHub para iniciantes
Gustavo Mathias
July 19, 2015
More Decks by Gustavo Mathias
See All by Gustavo Mathias
Git e GitHub para iniciantes - JS Funcional
gustavomathias
2
550
Git e GitHub - Trabalhando em projetos Open Source
gustavomathias
0
60
Ambiente de Trabalho
gustavomathias
0
54
Other Decks in Programming
See All in Programming
Flow は今どうなっているか
mizdra
PRO
0
410
琵琶湖の水は止められてもNet--HTTPのリトライは止められない / You might be able to stop the water flow of Lake Biwa but you can't stop Net::HTTP retries
luccafort
PRO
0
700
AIが無かった頃の素敵な出会いの話
codmoninc
1
430
仕様駆動開発の消費期限
watany
20
8.2k
<title><a id="</title>君はこのHTMLをパースできるか"></a></title> #雑LT_study
pizzacat83
0
140
ドリフトを絶対に許さない(?)CDK運用 / CDK Ops with Zero Tolerance for Drifts (?)
akihisaikeda
1
180
型も通る、synthも通る、それでも危ない 〜AIのCDKの権限とコストを機械で検証する〜 / It Passes Type Checks, It Passes Synth Checks, but It’s Still Risky — Automatically Verifying Permissions and Costs in AI’s CDK —
seike460
PRO
1
550
進化を続けるGo toolsの現在地 / The Current State of Ever-Evolving Go Tools
hond0413
0
210
the container ship “Apple Silicon”@WWDC26 Recap -Japan-\(region).swift
shingangan
0
120
人間の目はかわらない、だからJPEGは30年もつ
yuzneri
12
18k
VibeCodingからAgenticWorkflowへ
starfish719
0
450
【やさしく解説 設計編・中級 #6】良いアーキテクチャとは ~ 一本の登り道の、行き先 ~
panda728
PRO
0
210
Featured
See All Featured
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.4k
Become a Pro
speakerdeck
PRO
31
6.2k
WCS-LA-2024
lcolladotor
0
790
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
400
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
640
Skip the Path - Find Your Career Trail
mkilby
1
180
SEO for Brand Visibility & Recognition
aleyda
0
4.7k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
73
41k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
430
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
2
3.8k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3k
Balancing Empowerment & Direction
lara
6
1.2k
Transcript
Git e GitHub para iniciantes
Gustavo Mathias
[email protected]
https://github.com/gustavomathias • Análise e Desenvolvimento de Sistemas
- Fatec Itapetininga • Back-end e Front-end
Índice - Git • Fluxo de trabalho; • Instalação do
Git; • Configurações básicas; • Inicializando um repositório; • Rastreamento, status, commit e logs; • Ignorar arquivos e diretórios; • Diagrama de transição entre diretórios.
Git - fluxo de trabalho #1 - Working Directory, #2
- Index/Stage e #3 - HEAD.
Git - instalação do git Windows: http://msysgit.github.io Mac: http://code.google.com/p/git-osx-installer/downloads Linux:
//baseado em debian sudo apt-get install git //baseado em fedora sudo yum install git
Git - configurações básicas //configuração do nome do usuário git
config --global user.name “NomeUsuario” //configuração do e-mail do usuário git config --global user.email
[email protected]
Git - inicializando um diretório //entrar no diretório do projeto
cd /local/pasta/projeto //inicializando o diretório git initial O git irá criar uma pasta oculta com o nome .git, onde fica o index e o head.
Git - rastreamento, status, commit e logs //rastreamento de arquivos
e diretórios git add . //status git status //commit dos arquivos restreados git commit -m “mensagem” //vendo commits já feitos git log --oneline
Git - ignorar arquivos e diretórios Para ignorar arquivos, diretórios
ou extensões, crie o arquivo .gitignore. O GitHub fornece alguns exemplos de .gitignore. https://github.com/github/gitignore
Git - diagrama de transição entre diretórios
Índice - GitHub • Criando uma conta no GitHub; •
Criando um repositório; • Clonar repositório; • Transição de arquivos.
GitHub - clonar repositório //clonando um repositório git clone https://github.com/nomeusuario/nomerepositorio
Quando você clona um repositório, você não precisa inicializar ele com git init.
GitHub - transição de arquivos //download dos arquivos git pull
origin master //upload dos arquivos git push origin master
Git e GitHub para iniciantes