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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Gustavo Mathias
July 19, 2015
Programming
1
110
Git e GitHub para iniciantes
Gustavo Mathias
July 19, 2015
Tweet
Share
More Decks by Gustavo Mathias
See All by Gustavo Mathias
Git e GitHub para iniciantes - JS Funcional
gustavomathias
2
530
Git e GitHub - Trabalhando em projetos Open Source
gustavomathias
0
54
Ambiente de Trabalho
gustavomathias
0
48
Other Decks in Programming
See All in Programming
CSC307 Lecture 07
javiergs
PRO
0
550
CSC307 Lecture 04
javiergs
PRO
0
660
コマンドとリード間の連携に対する脅威分析フレームワーク
pandayumi
1
450
CSC307 Lecture 05
javiergs
PRO
0
500
MUSUBIXとは
nahisaho
0
130
LLM Observabilityによる 対話型音声AIアプリケーションの安定運用
gekko0114
2
420
Architectural Extensions
denyspoltorak
0
280
Patterns of Patterns
denyspoltorak
0
1.4k
Package Management Learnings from Homebrew
mikemcquaid
0
210
今こそ知るべき耐量子計算機暗号(PQC)入門 / PQC: What You Need to Know Now
mackey0225
3
370
ThorVG Viewer In VS Code
nors
0
770
AI巻き込み型コードレビューのススメ
nealle
1
150
Featured
See All Featured
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
62
49k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
180
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
7.9k
Into the Great Unknown - MozCon
thekraken
40
2.3k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.4k
Paper Plane (Part 1)
katiecoart
PRO
0
4k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
1
1.4k
The World Runs on Bad Software
bkeepers
PRO
72
12k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.1k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Google's AI Overviews - The New Search
badams
0
900
Odyssey Design
rkendrick25
PRO
1
490
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