diff --git a/Terminal Saved Output b/Terminal Saved Output new file mode 100644 index 0000000..a187487 --- /dev/null +++ b/Terminal Saved Output @@ -0,0 +1,920 @@ +Last login: Tue Jun 28 23:47:33 on ttys000 +johnnylang@johnnys-MBP ~ % git config +usage: git config [] + +Config file location + --global use global config file + --system use system config file + --local use repository config file + -f, --file use given config file + --blob read config from given blob object + +Action + --get get value: name [value-regex] + --get-all get all values: key [value-regex] + --get-regexp get values for regexp: name-regex [value-regex] + --get-urlmatch get value specific for the URL: section[.var] URL + --replace-all replace all matching variables: name value [value_regex] + --add add a new variable: name value + --unset remove a variable: name [value-regex] + --unset-all remove all matches: name [value-regex] + --rename-section rename section: old-name new-name + --remove-section remove a section: name + -l, --list list all + -e, --edit open an editor + --get-color find the color configured: slot [default] + --get-colorbool find the color setting: slot [stdout-is-tty] + +Type + --bool value is "true" or "false" + --int value is decimal number + --bool-or-int value is --bool or --int + --path value is a path (file or directory name) + +Other + -z, --null terminate values with NUL byte + --name-only show variable names only + --includes respect include directives on lookup + --show-origin show origin of config (file, standard input, blob, command line) + +johnnylang@johnnys-MBP ~ % git config --global user.name 'Johnny Lang' +johnnylang@johnnys-MBP ~ % git config --globacl usher.email 'johnnylang12@gmail.com' +error: unknown option `globacl' +usage: git config [] + +Config file location + --global use global config file + --system use system config file + --local use repository config file + -f, --file use given config file + --blob read config from given blob object + +Action + --get get value: name [value-regex] + --get-all get all values: key [value-regex] + --get-regexp get values for regexp: name-regex [value-regex] + --get-urlmatch get value specific for the URL: section[.var] URL + --replace-all replace all matching variables: name value [value_regex] + --add add a new variable: name value + --unset remove a variable: name [value-regex] + --unset-all remove all matches: name [value-regex] + --rename-section rename section: old-name new-name + --remove-section remove a section: name + -l, --list list all + -e, --edit open an editor + --get-color find the color configured: slot [default] + --get-colorbool find the color setting: slot [stdout-is-tty] + +Type + --bool value is "true" or "false" + --int value is decimal number + --bool-or-int value is --bool or --int + --path value is a path (file or directory name) + +Other + -z, --null terminate values with NUL byte + --name-only show variable names only + --includes respect include directives on lookup + --show-origin show origin of config (file, standard input, blob, command line) + +johnnylang@johnnys-MBP ~ % clear + +johnnylang@johnnys-MBP ~ % cd +johnnylang@johnnys-MBP ~ % ls +Applications Downloads Public +Coding Library Trading +Creative Cloud Files Movies node_modules +Desktop Music package-lock.json +Documents Pictures package.json +johnnylang@johnnys-MBP ~ % cd Projects/git-course +cd: no such file or directory: Projects/git-course +johnnylang@johnnys-MBP ~ % ls +Applications Downloads Public +Coding Library Trading +Creative Cloud Files Movies node_modules +Desktop Music package-lock.json +Documents Pictures package.json +johnnylang@johnnys-MBP ~ % cd Coding/Projects/git-course +johnnylang@johnnys-MBP git-course % ls +index.html +johnnylang@johnnys-MBP git-course % git init +Initialized empty Git repository in /Users/johnnylang/Coding/Projects/git-course/.git/ +johnnylang@johnnys-MBP git-course % git status +On branch master + +No commits yet + +Untracked files: + (use "git add ..." to include in what will be committed) + + index.html + +nothing added to commit but untracked files present (use "git add" to track) +johnnylang@johnnys-MBP git-course % git add +Nothing specified, nothing added. +Maybe you wanted to say 'git add .'? +johnnylang@johnnys-MBP git-course % git add index.html +johnnylang@johnnys-MBP git-course % git commit -am "I added a new file called index.html" +[master (root-commit) d64ca15] I added a new file called index.html + Committer: Johnny Lang +Your name and email address were configured automatically based +on your username and hostname. Please check that they are accurate. +You can suppress this message by setting them explicitly: + + git config --global user.name "Your Name" + git config --global user.email you@example.com + +After doing this, you may fix the identity used for this commit with: + + git commit --amend --reset-author + + 1 file changed, 0 insertions(+), 0 deletions(-) + create mode 100644 index.html +johnnylang@johnnys-MBP git-course % git add. +git: 'add.' is not a git command. See 'git --help'. + +The most similar command is + add +johnnylang@johnnys-MBP git-course % git status +On branch 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: index.html + +Untracked files: + (use "git add ..." to include in what will be committed) + + config.js + css/ + +no changes added to commit (use "git add" and/or "git commit -a") +johnnylang@johnnys-MBP git-course % git add . +johnnylang@johnnys-MBP git-course % git status +On branch master +Changes to be committed: + (use "git reset HEAD ..." to unstage) + + new file: config.js + new file: css/main.css + modified: index.html + +johnnylang@johnnys-MBP git-course % git commit -am "created main.css and config.js" +[master 9d4fdf4] created main.css and config.js + Committer: Johnny Lang +Your name and email address were configured automatically based +on your username and hostname. Please check that they are accurate. +You can suppress this message by setting them explicitly: + + git config --global user.name "Your Name" + git config --global user.email you@example.com + +After doing this, you may fix the identity used for this commit with: + + git commit --amend --reset-author + + 3 files changed, 7 insertions(+) + create mode 100644 config.js + create mode 100644 css/main.css +johnnylang@johnnys-MBP git-course % git commit -am "made background red" +[master 1d8f2f8] made background red + Committer: Johnny Lang +Your name and email address were configured automatically based +on your username and hostname. Please check that they are accurate. +You can suppress this message by setting them explicitly: + + git config --global user.name "Your Name" + git config --global user.email you@example.com + +After doing this, you may fix the identity used for this commit with: + + git commit --amend --reset-author + + 1 file changed, 3 insertions(+) +johnnylang@johnnys-MBP git-course % clear + +johnnylang@johnnys-MBP git-course % git log +commit 1d8f2f81a9d2d2116d0d6987545f3639506d59f5 (HEAD -> master) +Author: Johnny Lang +Date: Mon Jul 4 22:07:33 2022 -0700 + + made background red + +commit 9d4fdf430f571c96a43149b214412a3af0698dad +Author: Johnny Lang +Date: Mon Jul 4 22:06:13 2022 -0700 + + created main.css and config.js + +commit d64ca152592389ddf386e60b0ec3e09cf65d18de +Author: Johnny Lang +Date: Mon Jul 4 21:53:53 2022 -0700 + + I added a new file called index.html +johnnylang@johnnys-MBP git-course % git add +Nothing specified, nothing added. +Maybe you wanted to say 'git add .'? +johnnylang@johnnys-MBP git-course % git status +On branch 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: index.html + +no changes added to commit (use "git add" and/or "git commit -a") +johnnylang@johnnys-MBP git-course % clear + + + + + + + + + + + + + + + + + + + +johnnylang@johnnys-MBP git-course % git add . +johnnylang@johnnys-MBP git-course % git status +On branch master +Changes to be committed: + (use "git reset HEAD ..." to unstage) + + modified: index.html + +johnnylang@johnnys-MBP git-course % git commit -am "changed background and added header" +[master 8c53b10] changed background and added header + Committer: Johnny Lang +Your name and email address were configured automatically based +on your username and hostname. Please check that they are accurate. +You can suppress this message by setting them explicitly: + + git config --global user.name "Your Name" + git config --global user.email you@example.com + +After doing this, you may fix the identity used for this commit with: + + git commit --amend --reset-author + + 1 file changed, 6 insertions(+), 1 deletion(-) +johnnylang@johnnys-MBP git-course % git status +On branch master +nothing to commit, working tree clean +johnnylang@johnnys-MBP git-course % git checkout header +error: pathspec 'header' did not match any file(s) known to git. +johnnylang@johnnys-MBP git-course % git checkout header +error: pathspec 'header' did not match any file(s) known to git. +johnnylang@johnnys-MBP git-course % git status +On branch 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: index.html + +no changes added to commit (use "git add" and/or "git commit -a") +johnnylang@johnnys-MBP git-course % git checkout master +M index.html +Already on 'master' +johnnylang@johnnys-MBP git-course % git branch header +johnnylang@johnnys-MBP git-course % git checkout header +M index.html +Switched to branch 'header' +johnnylang@johnnys-MBP git-course % get checkout -b +zsh: command not found: get +johnnylang@johnnys-MBP git-course % git checkout -b +error: switch `b' requires a value +usage: git checkout [] + or: git checkout [] [] -- ... + + -q, --quiet suppress progress reporting + -b create and checkout a new branch + -B create/reset and checkout a branch + -l create reflog for new branch + --detach detach HEAD at named commit + -t, --track set upstream info for new branch + --orphan + new unparented branch + -2, --ours checkout our version for unmerged files + -3, --theirs checkout their version for unmerged files + -f, --force force checkout (throw away local modifications) + -m, --merge perform a 3-way merge with the new branch + --overwrite-ignore update ignored files (default) + --conflict