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
53
Git <> Codies
Stella Miranda
October 25, 2018
Tweet
Share
More Decks by Stella Miranda
See All by Stella Miranda
Pioneras Developers Barranquilla
stellamiranda
0
34
RailsGirlsCali
stellamiranda
0
14
bogotajs
stellamiranda
0
32
GDG-WTM
stellamiranda
0
68
Coderise 2015
stellamiranda
0
35
Coding like a girl
stellamiranda
1
9
devise-authy demo
stellamiranda
0
87
Other Decks in Education
See All in Education
Medidas en informática
irocho
0
300
AWS All Certが伝える 新AWS認定試験取得のコツ (Machine Learning Engineer - Associate)
nnydtmg
1
580
勉強する必要ある?
mineo_matsuya
2
1.6k
Chapitre_1_-__L_atmosphère_et_la_vie_-_Partie_2.pdf
bernhardsvt
0
200
認知情報科学科_キャリアデザイン_大学院の紹介
yuyakurodou
0
130
Beispiel einer Fortbildung für "Soziales Lernen"
gsgoethe
0
120
寺沢拓敬 2024. 09. 「言語政策研究と教育政策研究の狭間で英語教育政策を考える」
terasawat
0
200
Web Application Frameworks - Lecture 4 - Web Technologies (1019888BNR)
signer
PRO
0
2.6k
Image Processing 1 : 1.Introduction
hachama
0
270
Semantic Web and Web 3.0 - Lecture 9 - Web Technologies (1019888BNR)
signer
PRO
1
2.5k
HCI Research Methods - Lecture 7 - Human-Computer Interaction (1023841ANR)
signer
PRO
0
710
Introduction - Lecture 1 - Human-Computer Interaction (1023841ANR)
signer
PRO
0
1.7k
Featured
See All Featured
Imperfection Machines: The Place of Print at Facebook
scottboms
265
13k
Typedesign – Prime Four
hannesfritz
40
2.4k
Making Projects Easy
brettharned
115
5.9k
Unsuck your backbone
ammeep
668
57k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.8k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
364
24k
What's new in Ruby 2.0
geeforr
343
31k
A Tale of Four Properties
chriscoyier
156
23k
Being A Developer After 40
akosma
87
590k
A better future with KSS
kneath
238
17k
How to Think Like a Performance Engineer
csswizardry
20
1.1k
4 Signs Your Business is Dying
shpigford
180
21k
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