Make mars.txt a pro/con list
No Change
No Change
branch
mars.txt
mars.txt
mars.txt
mars.txt
mars.txt
Master branch
New idea branch
you test your new idea on this branch
Everyone looks at this unchanged version
git branch pro_con_listgit branchgit checkout pro_con_listgit branch branch_name
git checkout branch_name
git branchadd item to packing_list.txt
add item to packing_list.txt
no change
packing_list.txt
packing_list.txt
packing_list.txt
packing_list.txt
packing_list.txt
packing_list.txt
Combination of red and yellow files
git checkout master
git merge pro_con_listgit branch -D pro_con_listgit merge wolfman_packingText from master branch
Text from wolf man_packing branch
}
}
Resource: http://git-scm.com/book/en/