From 408f06d9072feb05cc24ab5934469b68b2d98dfa Mon Sep 17 00:00:00 2001 From: Abe Henderson Date: Mon, 7 Nov 2022 14:09:15 -0900 Subject: [PATCH] Modified commits.js and added commitshow.md --- Users/abehenderson/git-work/commits.js | 4 ++-- Users/abehenderson/git-work/commitshow.md | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 Users/abehenderson/git-work/commitshow.md diff --git a/Users/abehenderson/git-work/commits.js b/Users/abehenderson/git-work/commits.js index f327f1a..b86777f 100644 --- a/Users/abehenderson/git-work/commits.js +++ b/Users/abehenderson/git-work/commits.js @@ -1,5 +1,5 @@ -const a = 2, b = 8, c = 7 +const a = 2, b = 8, c = 5 const sum = a + b + c -console.log(sum) \ No newline at end of file +console.log(sum) diff --git a/Users/abehenderson/git-work/commitshow.md b/Users/abehenderson/git-work/commitshow.md new file mode 100644 index 0000000..44f321a --- /dev/null +++ b/Users/abehenderson/git-work/commitshow.md @@ -0,0 +1,12 @@ +### How To Edit A Document From The Terminal +--- + +1. Open desired folder using `cd` command +2. Open file using `code` command +3. Once the desired file is open in the editor, on the command line type `nano [filename]` + 1. The command `nano` opens the file within the terminal and allows for direct editing from the terminal +4. Edit the file as desired +5. To exit, press the keyboard shortcut `ctrl x` +6. To save changes press `y` +7. To exit the terminal editor, press `return` +