Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Git e GitHub para iniciantes - JS Funcional
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Gustavo Mathias
July 23, 2015
Programming
550
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Git e GitHub para iniciantes - JS Funcional
Apresentação para o curso de JS Funcional.
Gustavo Mathias
July 23, 2015
More Decks by Gustavo Mathias
See All by Gustavo Mathias
Git e GitHub para iniciantes
gustavomathias
1
120
Git e GitHub - Trabalhando em projetos Open Source
gustavomathias
0
64
Ambiente de Trabalho
gustavomathias
0
55
Other Decks in Programming
See All in Programming
Deep dive into the select statement (GopherCon UK)
jespino
0
170
AIを上手に使っていこうとしたら越境せざるを得なくなった話 〜実践1年で見えた境界を越えなければならない理由と進め方〜 / Crossing borders with AI
tomoyakitaura
4
1.1k
PHPプロジェクトの結合バランスを可視化する #php_night
kajitack
0
230
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
170
新人はどこまで自力でやり、どこからAIに頼るべきか/エンジニア育成に向き合う_先輩たちの悩みと知見共有会
toppan_digital_dev
1
590
Hello, Hiroshima Geospatial Data! — Exploring DoboX with Python
ra0kley
0
180
The Good Stuff, Not the Slop: Engineering High-Quality Android Apps with Modern AI Tooling
danybony
1
230
新卒PdEのリアル
ryu1013
1
480
AIは賢い。でも実行環境は? CLIおじさんがAI時代に伝えたいこと ~ CLIおじさんがAI時代に伝えたいこと ~
curekoshimizu
1
220
自分的「カンファレンスの楽しみ方」
syumai
0
200
AIの中の人になってみる
htkym
0
170
Webの地図
yosuke_furukawa
PRO
5
3.9k
Featured
See All Featured
Optimizing for Happiness
mojombo
378
71k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.1k
How to Think Like a Performance Engineer
csswizardry
28
2.8k
Discover your Explorer Soul
emna__ayadi
2
1.3k
SEO for Brand Visibility & Recognition
aleyda
0
4.7k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
Speed Design
sergeychernyshev
33
2.1k
Designing for Timeless Needs
cassininazir
1
470
The Invisible Side of Design
smashingmag
301
52k
How to Talk to Developers About Accessibility
jct
2
540
Transcript
None
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; • Ramificações; • Mesclagem.
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 “<username>” //configuração do e-mail do usuário git config --global user.email <email>
Git - inicializando um diretório //entrar no diretório do projeto
cd /local/pasta/projeto //inicializando o diretório git init 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
Git - ramificações //adicionando branch git branch <branch> //listar branch
git branch //excluir branch local git branch -D <branch> //excluir branch remoto git push <remote> :<branch> //sincronizar branch com o github git fetch <remote>
Git - ramificações
Git - mesclagem //mesclando branchs git merge <branch>
Índice - GitHub • Criando uma conta no GitHub; •
Criando um repositório; • Clonar repositório; • Transição de arquivos; • Fork; • Pull Request.
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
<remote> <branch> //upload dos arquivos git push <remote> <branch>
Git e GitHub para iniciantes