Why I use version control
Christophers-MacBook-Pro:t_test chris$ cp t_test3.pg inclass_t_test2.pg
Oh, crap! I wanted to copy that to inclass_t_test3.pg
, not overwrite inclass_t_test2.pg
!
Christophers-MacBook-Pro:t_test chris$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add ..." to update what will be committed)
(use "git checkout -- ..." to discard changes in working directory)
modified: inclass_t_test2.pg
no changes added to commit (use "git add" and/or "git commit -a")
Christophers-MacBook-Pro:t_test chris$ git checkout -- inclass_t_test2.pg
Christophers-MacBook-Pro:t_test chris$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
Whew!!
Christophers-MacBook-Pro:t_test chris$ cp t_test3.pg inclass_t_test3.pg