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 - JS Funcional
Search
Gustavo Mathias
July 23, 2015
Programming
2
530
Git e GitHub para iniciantes - JS Funcional
Apresentação para o curso de JS Funcional.
Gustavo Mathias
July 23, 2015
Tweet
Share
More Decks by Gustavo Mathias
See All by Gustavo Mathias
Git e GitHub para iniciantes
gustavomathias
1
99
Git e GitHub - Trabalhando em projetos Open Source
gustavomathias
0
51
Ambiente de Trabalho
gustavomathias
0
45
Other Decks in Programming
See All in Programming
Team topologies and the microservice architecture: a synergistic relationship
cer
PRO
0
1.2k
Railsアプリケーションと パフォーマンスチューニング ー 秒間5万リクエストの モバイルオーダーシステムを支える事例 ー Rubyセミナー 大阪
falcon8823
4
1k
5つのアンチパターンから学ぶLT設計
narihara
1
140
来たるべき 8.0 に備えて React 19 新機能と React Router 固有機能の取捨選択とすり合わせを考える
oukayuka
2
880
WindowInsetsだってテストしたい
ryunen344
1
220
ruby.wasmで多人数リアルタイム通信ゲームを作ろう
lnit
2
330
『自分のデータだけ見せたい!』を叶える──Laravel × Casbin で複雑権限をスッキリ解きほぐす 25 分
akitotsukahara
1
600
20250628_非エンジニアがバイブコーディングしてみた
ponponmikankan
0
600
What Spring Developers Should Know About Jakarta EE
ivargrimstad
0
380
#kanrk08 / 公開版 PicoRubyとマイコンでの自作トレーニング計測装置を用いたワークアウトの理想と現実
bash0c7
1
660
新メンバーも今日から大活躍!SREが支えるスケールし続ける組織のオンボーディング
honmarkhunt
1
360
関数型まつりレポート for JuliaTokai #22
antimon2
0
160
Featured
See All Featured
The Straight Up "How To Draw Better" Workshop
denniskardys
234
140k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Thoughts on Productivity
jonyablonski
69
4.7k
KATA
mclloyd
30
14k
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
Testing 201, or: Great Expectations
jmmastey
42
7.6k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
7
720
Agile that works and the tools we love
rasmusluckow
329
21k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
124
52k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
50k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
161
15k
Scaling GitHub
holman
459
140k
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