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 <> Codies
Search
Stella Miranda
October 25, 2018
Education
74
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Git <> Codies
Stella Miranda
October 25, 2018
Transcript
33 slides
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
More Decks by Stella Miranda
See All by Stella Miranda
Pioneras Developers Barranquilla
stellamiranda
0
57
RailsGirlsCali
stellamiranda
0
27
bogotajs
stellamiranda
0
47
GDG-WTM
stellamiranda
0
90
Coderise 2015
stellamiranda
0
45
Coding like a girl
stellamiranda
1
25
devise-authy demo
stellamiranda
0
98
Other Decks in Education
See All in Education
Liburd and Stoll Farrell "Copyright Essentials From A to AI: A 2026 NISO Training Series, Session One: Foundations & Frameworks of Copyright"
baltimoreniso
0
250
【ainiチャット操作ガイド】
ainischool
0
220
Liburd and Stoll Farrell "Copyright Essentials From A to AI: A 2026 NISO Training Series, Session Three: Exceptions for Libraries"
baltimoreniso
0
240
Concours Photo - UGE - 2026
echaille
0
200
Session 6 - Mass Communication
adeputra13
0
340
Human Perception and Cognition - Lecture 4 - Human-Computer Interaction (1023841ANR)
signer
PRO
0
1.8k
2026年度秋学期 統計学 第4回 データを「分布」で見る (2026. 10. 20)
akiraasano
PRO
0
220
Session 1 & 2 - Mass Communication
adeputra13
0
750
Unit 4: Introduction to Software Development Life Cycle
sonakv
0
120
Before You Scale: Understand the Theory Behind the Simulation
pfn
PRO
1
220
[2026後期火5] 論理学(京都大学文学部 後期 第3回)「∀ の規則と固有変数条件」
yatabe
0
200
Zimmerman "Copyright Essentials From A to AI: A 2026 NISO Training Series, Session Seven: Copyright & AI"
baltimoreniso
0
120
Featured
See All Featured
Producing Creativity
orderedlist
PRO
348
41k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.9k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8.3k
The Language of Interfaces
destraynor
163
27k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.5k
Git: the NoSQL Database
bkeepers
PRO
433
67k
Site-Speed That Sticks
csswizardry
13
1.6k
Into the Great Unknown - MozCon
thekraken
41
2.8k
Code Reviewing Like a Champion
maltzj
529
40k
A Soul's Torment
seathinner
9
4k
Abbi's Birthday
coloredviolet
5
11k