From 945bde2dd0f3214784550bed44008fccd8a1ab40 Mon Sep 17 00:00:00 2001 From: Elizabeth McMurchie Date: Wed, 26 Jan 2022 23:43:14 -0600 Subject: [PATCH 1/2] completed the unix exercise --- notes/README.md | 1 + notes/ch_5_notes_practice.md | 41 ++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 notes/README.md create mode 100644 notes/ch_5_notes_practice.md diff --git a/notes/README.md b/notes/README.md new file mode 100644 index 0000000..cc96d7e --- /dev/null +++ b/notes/README.md @@ -0,0 +1 @@ +This directory contains some notes I wrote on chapter 5 of the text and related practice that I did diff --git a/notes/ch_5_notes_practice.md b/notes/ch_5_notes_practice.md new file mode 100644 index 0000000..00babbf --- /dev/null +++ b/notes/ch_5_notes_practice.md @@ -0,0 +1,41 @@ +# Chapter 5 notes and practice +## Git version control +- Can rollback code to a time when things worked if something stops working +- Good for reproducibility +- Tracks changes and makes it easy for others to access those changes +- Makes things available to others after people move on from projects + +## Basic Git +- Telling git who you are: I've already done this. Is it possible to add a different email? I have used my personal email in the past rather than the ISU email +- My color ui is already set to true +- I made a respository on github (it was empty) and cloned it to hpc-class + +### 'git status' shows you status of repository +- I have an untracked file right now + +### 'git add' adds that file if you specify the file name + +I have a test file to be committed now (it's staged) + +### The snapshot: git commit +'git commit' -m "initial test import"' is how i committed this +- git commit takes a snapshot, essentially + +### 'git diff' shows you shows you differences in working directory vs what's been staged + +### 'git log' shows your chain of commits +- This can get pretty long (as it did with Wade's work) +- In that case you may need to ctl-c out of it + +### A couple other commands +1. 'git rm ' removes files +2. 'git mv ' moves them and can be used to change extension + +### '.gitignore' file tells you what to ignore +- I made a file "ignoreme.txt" in a "junk" folder and told git to ignore it +- Useful for ignoring big files, intermediate files, and temp files + +### 'git reset' lets you undo things you've staged (removes them from staging) +- ex I added a line "messy addition" to my readme and then removed it + +## At this point I pushed these to my [practice repository](https://github.com/ekmcmurchie/EEOB_546_McMurchie) (click link to view) and then switched on over to doing this exercise From f31998103e1e4d13007cd5e8e7d68f630e75be9b Mon Sep 17 00:00:00 2001 From: Elizabeth McMurchie Date: Fri, 28 Jan 2022 13:48:50 -0600 Subject: [PATCH 2/2] more practice committing files --- notes/practice.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 notes/practice.txt diff --git a/notes/practice.txt b/notes/practice.txt new file mode 100644 index 0000000..d2d3927 --- /dev/null +++ b/notes/practice.txt @@ -0,0 +1 @@ +more practice