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 <> Codies
Search
Stella Miranda
October 25, 2018
Education
0
52
Git <> Codies
Stella Miranda
October 25, 2018
Tweet
Share
More Decks by Stella Miranda
See All by Stella Miranda
Pioneras Developers Barranquilla
stellamiranda
0
27
RailsGirlsCali
stellamiranda
0
12
bogotajs
stellamiranda
0
21
GDG-WTM
stellamiranda
0
62
Coderise 2015
stellamiranda
0
33
Coding like a girl
stellamiranda
1
7
devise-authy demo
stellamiranda
0
85
Other Decks in Education
See All in Education
Microsoft Office 365
matleenalaakso
0
1.5k
Copilotとして理解する生成AI利用の基本
gmoriki
0
130
Analysis and Validation - Lecture 4 - Information Visualisation (4019538FNR)
signer
PRO
0
1.4k
AWS試験全冠したら新しい道が開けた話
nagisa53
3
1.1k
経験に複利を効かせろ!ふりかえり研修2024
pokotyamu
19
7.2k
Railsチュートリアルの歩き方 (第7版)
yasslab
PRO
1
1M
Design Guidelines and Principles - Lecture 7 - Information Visualisation (4019538FNR)
signer
PRO
0
1.7k
2023年度桜井政成ゼミ資料_論文の探し方・読み方
masanari
6
2.2k
Visualisation Techniques - Lecture 8 - Information Visualisation (4019538FNR)
signer
PRO
0
1.7k
20240319AJG
tosseto
0
290
Digijulkaisut
matleenalaakso
1
8.5k
HCL Notes 14.0 「スタイルの変更」で「3 設定の確認」を深掘り
harunakano
0
1.9k
Featured
See All Featured
The Mythical Team-Month
searls
215
42k
jQuery: Nuts, Bolts and Bling
dougneiner
59
7.1k
Bootstrapping a Software Product
garrettdimon
PRO
301
110k
Why You Should Never Use an ORM
jnunemaker
PRO
50
8.6k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
115
18k
Stop Working from a Prison Cell
hatefulcrawdad
266
19k
Principles of Awesome APIs and How to Build Them.
keavy
120
16k
4 Signs Your Business is Dying
shpigford
175
21k
How GitHub Uses GitHub to Build GitHub
holman
468
290k
Art, The Web, and Tiny UX
lynnandtonic
288
19k
Ruby is Unlike a Banana
tanoku
96
10k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
13
1.5k
Transcript
None
None
Version control with Git
Github vs. GitLab vs. Bitbucket
Github
What is your current version control system?
What is your current version control system? 1. How do
you manage different file versions? 2. How do you work with collaborators on the same files? 3. How much would your science suffer if your workstation exploded right now? (scale from 1-10)
What is git • Version control system. • Manage different
versions of files. • Collaborate with yourself. • Collaborate with other people.
Why use git “Always remember your first collaborator is your
future self, and your past self doesn’t answer emails” - Christie Bahlai
What is git good for? Backup Reproducibility Collaboration Organization Transparency
Command line git
Initializing a repository Prerequisites: ▶ git installed (check with which
git) ▶ git configured (check with git config --list) git config --global user.name "Vlad Dracula" git config --global user.email "
[email protected]
" git config --global color.ui "auto" git config --global core.editor "nano"
Initializing a repository git git init
Checking repository status git status
Adding your file git add your_filename.R or, to add everything
git add --all
Ignoring files .gitignore
Adding a remote repository git remote add origin
[email protected]
:Codies/trygit.gitt
Checking repository status git status
None
Committing Once you’re sure that you’re changes are worth saving
(THIS WILL GO ON YOUR PERMANENT RECORD) git commit -m 'changed x, y, and z'
Commit messages ▶ Describe why and the what “in a
nutshell” ▶ Note to your future self (and to anyone else who you’re collaborating with)
Checking repository status git status
What did we do? git status git log
Make another change 1. Change file 2. Add changes 3.
Commit changes 4. View updated log
Branches
Pull Request Let’s do one!
Fix conflicts
Saving temporary your changes git stash git stash happy
Moving a commit to another branch git cherry-pick
Merging branches git merge
Rebase vs Merge git merge vs git rebase
Squashing commits git rebase -i HEAD~2
Gracias! - @codies_latam - @codiescolombia - /LadiesAndCode