Teaching my wife to use Git
- Josh: hit Apple-Space and type in "terminal" to open the terminal app
- Josh: then I'll type in what I need you to write in the terminal
- Josh: just a couple easy commands
- Josh: ready?
- Erin: okay
- Erin: i think
- Erin: just type anyhwere?
- Josh: copy and paste this, then press enter:
- Josh: cd /path/to/some/code/
- Erin: okay
- Josh: type this and press enter:
- Josh: git stash
- Erin: wait
- Erin: when I did that
- Erin: it say "fatal: nota git repository
- Josh: hmm
- Erin: and after I pressed enter with that first command
- Erin: It said "no such file or directory
- Josh: oh, my bad
- Josh: do this and press enter
- Josh: cd /path/to/the/right/code/
- Erin: okay
- Erin: how do I erase?
- Josh: backspace
- Josh: oh, I mean
- Erin: that's not workng
- Josh: just type this in and press enter
- Josh: cd /path/to/the/right/code/
- Erin: okay
- Josh: then type this and press enter
- Josh: git stash
- Josh: it should spit out a handful of lines, which is okay
- Josh: then type this and hit tab, wait for it to auto-complete, then press enter
- Josh: git checkout mybranch-
- Erin: okay
- Erin: I'm coding!
- Josh: what did it auto-complete to?
- Erin: it says "git checkout mybranch-complete
- Josh: perfect
- Josh: and you pressed enter?
- Erin: yes
- Erin: and then it said
- Erin: Switched to branch "mybranch-complete
- Josh: perfect!
- Josh: now do this and press enter:
- Josh: git push origin mybranch-complete
- Erin: okay
- Erin: a bunch of stop popped up
- Erin: in a good way
- Josh: yes
- Josh: you are my hero
- Josh: that did exactly what I need
- Erin: yes!
- Erin: I love being your hero
- Josh: congratulations, you just uploaded code to the Internet!
- Erin: YESSSS
- Erin: that was awesome
- Josh: haha
- Erin: I feel empowered
- Josh: see? programming is fun
- Erin: teach me to code!
- Erin: even if it's just for fun
- Erin: I would love to know!
- Josh: we should do it
- Erin: yes
- Erin: we should
- Erin: should I leave the terminal up?
- Josh: nope, you can close it
- Josh: your job is done
- Josh: I just left some code on my computer that I needed on my work computer
- Erin: gotcha
- Josh: and you put it online where I could get to it
- Erin: nice!
- Josh: right?
- Erin: I'm cool!
- Josh: technology is cool