Introduction to Using Git
Pyladies, November 18, 2015
on a mac: http://sourceforge.net/projects/git-osx-installer/
on a pc: http://msysgit.github.io
http://averycodes.com
Software Engineer, Minerva Project
Versioning
add grapefruit
remove potatoes
add milk
add butter
Versioning as a set of instructions
on github
in commandline
Open the command line tools, add your name and email
git config --global user.email <email>
git config --global user.name <name>
git config --list
https://github.com/averymanderson/teaching-git
Navigate to github, copy the https clone url and clone the repository to your computer
Add your name to example.txt, make a commit with an informative commit message
Push your changes to the server. Pull updates from the server. Resolve merge conflicts.
Push your changes to the server. Pull updates from the server. Resolve merge conflicts.
Avery's Laptop
Github
Lynn's Laptop
olives
prunes
olives
prunes
olives
prunes
+ carrots
+ beans
- olives
+ tomatoes
- prunes
+ sugar
Avery's Laptop
Github
Lynn's Laptop
olives
prunes
prunes
carrots
beans
tomatoes
olives
sugar
+ carrots
+ beans
- olives
+ tomatoes
- prunes
+ sugar
Avery's Laptop
Github
Lynn's Laptop
olives
prunes
prunes
carrots
beans
tomatoes
olives
sugar
"add vegetables"
"remove olives"
"remove prunes add sugar"
+ carrots
+ beans
- olives
+ tomatoes
- prunes
+ sugar
Avery's Laptop
Github
Lynn's Laptop
olives
prunes
prunes
carrots
beans
tomatoes
olives
sugar
"add vegetables"
"remove olives"
"remove prunes add sugar"
push
push
+ carrots
+ beans
- olives
+ tomatoes
- prunes
+ sugar
Avery's Laptop
Github
Lynn's Laptop
carrots
beans
tomatoes
sugar
prunes
carrots
beans
tomatoes
olives
sugar
+ carrots
+ beans
- olives
+ tomatoes
- prunes
+ sugar
+ carrots
+ beans
- olives
+ tomatoes
- prunes
+ sugar
Avery's Laptop
Github
Lynn's Laptop
carrots
beans
tomatoes
sugar
prunes
carrots
beans
tomatoes
olives
sugar
+ carrots
+ beans
- olives
+ tomatoes
- prunes
+ sugar
pull
pull
Avery's Laptop
Github
Lynn's Laptop
carrots
beans
tomatoes
sugar
+ carrots
+ beans
- olives
+ tomatoes
- prunes
+ sugar
+ carrots
+ beans
- olives
+ tomatoes
- prunes
+ sugar
+ carrots
+ beans
- olives
+ tomatoes
- prunes
+ sugar
carrots
beans
tomatoes
sugar
carrots
beans
tomatoes
sugar
+ carrots
+ beans
- olives
+ tomatoes
- prunes
+ sugar
Avery's Laptop
Github
Lynn's Laptop
carrots
beans
tomatoes
sugar
prunes
carrots
beans
tomatoes
olives
sugar
+ carrots
+ beans
- olives
+ tomatoes
- prunes
+ sugar
pull
pull
Branch off from master. Add some people to the list who should be pyladies. Merge your branch back into master