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
59
0
Share
Git <> Codies
Stella Miranda
October 25, 2018
More Decks by Stella Miranda
See All by Stella Miranda
Pioneras Developers Barranquilla
stellamiranda
0
44
RailsGirlsCali
stellamiranda
0
18
bogotajs
stellamiranda
0
41
GDG-WTM
stellamiranda
0
75
Coderise 2015
stellamiranda
0
39
Coding like a girl
stellamiranda
1
16
devise-authy demo
stellamiranda
0
91
Other Decks in Education
See All in Education
GOBUSATA紹介
chankawa919
0
130
事業紹介資料(トレーナー養成講座)
kentaro1981
0
110
Lenguajes de Programacion (Ingresantes UNI 2026)
robintux
0
150
Padlet opetuksessa
matleenalaakso
12
15k
Activité_5_-_Les_indicateurs_du_climat_global.pdf
bernhardsvt
0
210
Visualisation Techniques - Lecture 8 - Information Visualisation (4019538FNR)
signer
PRO
1
2.9k
Introduction - Lecture 1 - Information Visualisation (4019538FNR)
signer
PRO
0
5.4k
応募課題(’25広島)
forget1900
0
960
バージョン管理とは / 01-a-vcs
kaityo256
PRO
1
230
自己紹介 / who-am-i
yasulab
6
6.5k
Why the humanities may be your best career bet
figarospeech
0
140
Chapitre_2_-_Partie_3.pdf
bernhardsvt
0
210
Featured
See All Featured
Information Architects: The Missing Link in Design Systems
soysaucechin
0
850
The browser strikes back
jonoalderson
0
860
RailsConf 2023
tenderlove
30
1.4k
Six Lessons from altMBA
skipperchong
29
4.2k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
Skip the Path - Find Your Career Trail
mkilby
1
93
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
100
Accessibility Awareness
sabderemane
0
88
Discover your Explorer Soul
emna__ayadi
2
1.1k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
290
Ruling the World: When Life Gets Gamed
codingconduct
0
190
Reality Check: Gamification 10 Years Later
codingconduct
0
2.1k
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