chrisphan.com

Why I use version control

An analog clock reading 1:072018-04-13 / 2018-W15-5T13:07:23-05:00 / 0x5ad0f1db

Categories: computers

Bash
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!

Bash
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")
git checkout -- inclass_t_test2.pg
git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean

Whew!!

Bash
cp t_test3.pg inclass_t_test3.pg