Created
November 28, 2017 18:17
-
-
Save tomatohammado/e823874710a73ff04c102f47e31bfcd7 to your computer and use it in GitHub Desktop.
Week 1 Day 2 - git practice, and then I ran some shell script...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Last login: Mon Nov 27 15:13:58 on ttys000 | |
| GAs-MacBook-Air:~ ga$ cd ga-wdi/ | |
| GAs-MacBook-Air:ga-wdi ga$ cd sandbox/ | |
| GAs-MacBook-Air:sandbox ga$ mkdir git_practice_sample_resume $$ cd "$_" | |
| GAs-MacBook-Air:sandbox ga$ ls | |
| 8038 git_practice_sample_resume vestibule | |
| cd sandbox | |
| GAs-MacBook-Air:sandbox ga$ open . | |
| GAs-MacBook-Air:sandbox ga$ mv git_practice_sample_resume/ sandbox/ | |
| GAs-MacBook-Air:sandbox ga$ ls | |
| sandbox vestibule | |
| GAs-MacBook-Air:sandbox ga$ cd sandbox/ | |
| GAs-MacBook-Air:sandbox ga$ ls | |
| git_practice_sample_resume | |
| GAs-MacBook-Air:sandbox ga$ rm -rf git_practice_sample_resume/ | |
| GAs-MacBook-Air:sandbox ga$ ls | |
| GAs-MacBook-Air:sandbox ga$ mkdir git_practice_sample_resume && cd "$_" | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ git init | |
| Initialized empty Git repository in /Users/ga/ga-wdi/sandbox/sandbox/git_practice_sample_resume/.git/ | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ touch index.html | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ code . | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ git status | |
| On branch master | |
| No commits yet | |
| Untracked files: | |
| (use "git add <file>..." to include in what will be committed) | |
| index.html | |
| nothing added to commit but untracked files present (use "git add" to track) | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ git add index.html | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ git commit -m "Add index.html with scaffold | |
| > | |
| > starting sample project, used `html:5` `tab` to use emmet to create scaffold template. No other changes." | |
| -bash: html:5: command not found | |
| -bash: tab: command not found | |
| [master (root-commit) 5fce296] Add index.html with scaffold | |
| 1 file changed, 12 insertions(+) | |
| create mode 100644 index.html | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ git log | |
| commit 5fce296f13fc4aa7a19c0c0d3dc31eb4d0ea9e9c (HEAD -> master) | |
| Author: Hammad Malik <[email protected]> | |
| Date: Tue Nov 28 10:48:44 2017 -0500 | |
| Add index.html with scaffold | |
| starting sample project, used to use emmet to create scaffold template. No other changes. | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ git log --pretty=oneline | |
| 5fce296f13fc4aa7a19c0c0d3dc31eb4d0ea9e9c (HEAD -> master) Add index.html with scaffold | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ touch style.css | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ echo "* { | |
| > c | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ code . | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ git status | |
| On branch master | |
| Untracked files: | |
| (use "git add <file>..." to include in what will be committed) | |
| style.css | |
| nothing added to commit but untracked files present (use "git add" to track) | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ git add style.css | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ git commit -m "Add style.css | |
| > | |
| > Created style.css file, entered a simple rule just to populate it." | |
| [master 8244fa2] Add style.css | |
| 1 file changed, 3 insertions(+) | |
| create mode 100644 style.css | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ git config | |
| usage: git config [<options>] | |
| Config file location | |
| --global use global config file | |
| --system use system config file | |
| --local use repository config file | |
| -f, --file <file> use given config file | |
| --blob <blob-id> 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) | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ git config --list | |
| credential.helper=osxkeychain | |
| push.default=simple | |
| color.ui=always | |
| color.branch.current=green reverse | |
| color.branch.local=green | |
| color.branch.remote=yellow | |
| color.status.added=green | |
| color.status.changed=yellow | |
| color.status.untracked=red | |
| core.editor=atom --wait | |
| core.excludesfile=/Users/ga/.gitignore_global | |
| user.name=Hammad Malik | |
| [email protected] | |
| core.repositoryformatversion=0 | |
| core.filemode=true | |
| core.bare=false | |
| core.logallrefupdates=true | |
| core.ignorecase=true | |
| core.precomposeunicode=true | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ git config --global core.editor "code --wait" | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ git config --list | |
| credential.helper=osxkeychain | |
| push.default=simple | |
| color.ui=always | |
| color.branch.current=green reverse | |
| color.branch.local=green | |
| color.branch.remote=yellow | |
| color.status.added=green | |
| color.status.changed=yellow | |
| color.status.untracked=red | |
| core.editor=code --wait | |
| core.excludesfile=/Users/ga/.gitignore_global | |
| user.name=Hammad Malik | |
| [email protected] | |
| core.repositoryformatversion=0 | |
| core.filemode=true | |
| core.bare=false | |
| core.logallrefupdates=true | |
| core.ignorecase=true | |
| core.precomposeunicode=true | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ ls -al ~/,ssh | |
| ls: /Users/ga/,ssh: No such file or directory | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ ls -al ~/.ssh | |
| total 8 | |
| drwx------ 3 ga staff 96 Nov 13 16:33 . | |
| drwxr-xr-x+ 31 ga staff 992 Nov 28 11:15 .. | |
| -rw-r--r-- 1 ga staff 407 Nov 13 16:33 known_hosts | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ ls -al ~/.ssh/known_hosts | |
| -rw-r--r-- 1 ga staff 407 Nov 13 16:33 /Users/ga/.ssh/known_hosts | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ ssh -T [email protected] | |
| Warning: Permanently added the RSA host key for IP address '192.30.253.113' to the list of known hosts. | |
| Permission denied (publickey). | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ ls -al ~/.ssh | |
| total 8 | |
| drwx------ 3 ga staff 96 Nov 13 16:33 . | |
| drwxr-xr-x+ 31 ga staff 992 Nov 28 11:15 .. | |
| -rw-r--r-- 1 ga staff 803 Nov 28 11:30 known_hosts | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ ls -al ~/.ssh/known_hosts | |
| -rw-r--r-- 1 ga staff 803 Nov 28 11:30 /Users/ga/.ssh/known_hosts | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ ls -a ~/.ssh | |
| . .. known_hosts | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ ls -a ~/.ssh/known_hosts | |
| /Users/ga/.ssh/known_hosts | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ ssh -T [email protected] | |
| Permission denied (publickey). | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ ssh -T [email protected] | |
| ^C | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ ssh -T [email protected] | |
| ^C | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ ssh-keygen -t rsa 4096 -C "[email protected]" | |
| Too many arguments. | |
| usage: ssh-keygen [-q] [-b bits] [-t dsa | ecdsa | ed25519 | rsa] | |
| [-N new_passphrase] [-C comment] [-f output_keyfile] | |
| ssh-keygen -p [-P old_passphrase] [-N new_passphrase] [-f keyfile] | |
| ssh-keygen -i [-m key_format] [-f input_keyfile] | |
| ssh-keygen -e [-m key_format] [-f input_keyfile] | |
| ssh-keygen -y [-f input_keyfile] | |
| ssh-keygen -c [-P passphrase] [-C comment] [-f keyfile] | |
| ssh-keygen -l [-v] [-E fingerprint_hash] [-f input_keyfile] | |
| ssh-keygen -B [-f input_keyfile] | |
| ssh-keygen -D pkcs11 | |
| ssh-keygen -F hostname [-f known_hosts_file] [-l] | |
| ssh-keygen -H [-f known_hosts_file] | |
| ssh-keygen -R hostname [-f known_hosts_file] | |
| ssh-keygen -r hostname [-f input_keyfile] [-g] | |
| ssh-keygen -G output_file [-v] [-b bits] [-M memory] [-S start_point] | |
| ssh-keygen -T output_file -f input_file [-v] [-a rounds] [-J num_lines] | |
| [-j start_line] [-K checkpt] [-W generator] | |
| ssh-keygen -s ca_key -I certificate_identity [-h] [-n principals] | |
| [-O option] [-V validity_interval] [-z serial_number] file ... | |
| ssh-keygen -L [-f input_keyfile] | |
| ssh-keygen -A | |
| ssh-keygen -k -f krl_file [-u] [-s ca_public] [-z version_number] | |
| file ... | |
| ssh-keygen -Q -f krl_file file ... | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ h-keygen -t rsa -b 4096 -C "[email protected]" | |
| -bash: h-keygen: command not found | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ ssh-keygen -t rsa -b 4096 -C "[email protected]" | |
| Generating public/private rsa key pair. | |
| Enter file in which to save the key (/Users/ga/.ssh/id_rsa): | |
| Enter passphrase (empty for no passphrase): | |
| Enter same passphrase again: | |
| Your identification has been saved in /Users/ga/.ssh/id_rsa. | |
| Your public key has been saved in /Users/ga/.ssh/id_rsa.pub. | |
| The key fingerprint is: | |
| SHA256:dVjUk3/vzig73TMjSum0yqNkQqaqegyU1U+8hxNmHeg [email protected] | |
| The key's randomart image is: | |
| +---[RSA 4096]----+ | |
| | . . o...o. . | | |
| | . . B . o + | | |
| | o * + o . o | | |
| | o E o . o| | |
| |. o S o| | |
| |. + . .| | |
| | o . . o + . o | | |
| | + + ..+ +..*o| | |
| |=o ..oo+o+o.*| | |
| +----[SHA256]-----+ | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ eval "$(ssh-agent -s)" | |
| Agent pid 8542 | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ ssh-add ~/.ssh/id_rsa | |
| Identity added: /Users/ga/.ssh/id_rsa (/Users/ga/.ssh/id_rsa) | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ ls -al ~/.ssh | |
| total 24 | |
| drwx------ 5 ga staff 160 Nov 28 11:46 . | |
| drwxr-xr-x+ 31 ga staff 992 Nov 28 11:15 .. | |
| -rw------- 1 ga staff 3243 Nov 28 11:46 id_rsa | |
| -rw-r--r-- 1 ga staff 744 Nov 28 11:46 id_rsa.pub | |
| -rw-r--r-- 1 ga staff 803 Nov 28 11:30 known_hosts | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ pbcopy < ~/.ssh/id_rsa.pub | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ ssh -T [email protected] | |
| Hi tomatohammado! You've successfully authenticated, but GitHub does not provide shell access. | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ ssh -T [email protected] | |
| ssh: connect to host generalassemb.ly port 22: Operation timed out | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ ssh -T [email protected] | |
| The authenticity of host 'git.generalassemb.ly (54.204.15.65)' can't be established. | |
| ECDSA key fingerprint is SHA256:pVAJYAd8Ha3GE27Huoeth4S4d/8mal7vLVcd1LUePJQ. | |
| Are you sure you want to continue connecting (yes/no)? yes | |
| Warning: Permanently added 'git.generalassemb.ly,54.204.15.65' (ECDSA) to the list of known hosts. | |
| Hi tomatohammado! You've successfully authenticated, but GitHub does not provide shell access. | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ git remote add origin [email protected]:tomatohammado/git-practice-sample-resume.git | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ git push -u origin master | |
| Counting objects: 6, done. | |
| Delta compression using up to 4 threads. | |
| Compressing objects: 100% (4/4), done. | |
| Writing objects: 100% (6/6), 784 bytes | 261.00 KiB/s, done. | |
| Total 6 (delta 0), reused 0 (delta 0) | |
| To git.generalassemb.ly:tomatohammado/git-practice-sample-resume.git | |
| * [new branch] master -> master | |
| Branch 'master' set up to track remote branch 'master' from 'origin'. | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ git config --list | |
| credential.helper=osxkeychain | |
| push.default=simple | |
| color.ui=always | |
| color.branch.current=green reverse | |
| color.branch.local=green | |
| color.branch.remote=yellow | |
| color.status.added=green | |
| color.status.changed=yellow | |
| color.status.untracked=red | |
| core.editor=code --wait | |
| core.excludesfile=/Users/ga/.gitignore_global | |
| user.name=Hammad Malik | |
| [email protected] | |
| core.repositoryformatversion=0 | |
| core.filemode=true | |
| core.bare=false | |
| core.logallrefupdates=true | |
| core.ignorecase=true | |
| core.precomposeunicode=true | |
| [email protected]:tomatohammado/git-practice-sample-resume.git | |
| remote.origin.fetch=+refs/heads/*:refs/remotes/origin/* | |
| branch.master.remote=origin | |
| branch.master.merge=refs/heads/master | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ git remote -v | |
| origin [email protected]:tomatohammado/git-practice-sample-resume.git (fetch) | |
| origin [email protected]:tomatohammado/git-practice-sample-resume.git (push) | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ curl -o add-prompt.sh "https://git.generalassemb.ly/raw/DC-WDI/installfest-bash/master/add-prompt.sh" && sh add-prompt.sh | |
| % Total % Received % Xferd Average Speed Time Time Time Current | |
| Dload Upload Total Spent Left Speed | |
| 100 612 100 612 0 0 3549 0 --:--:-- --:--:-- --:--:-- 3621 | |
| % Total % Received % Xferd Average Speed Time Time Time Current | |
| Dload Upload Total Spent Left Speed | |
| 100 16223 100 16223 0 0 112k 0 --:--:-- --:--:-- --:--:-- 112k | |
| Updating Homebrew... | |
| ==> Auto-updated Homebrew! | |
| Updated 2 taps (homebrew/core, caskroom/cask). | |
| ==> New Formulae | |
| glslviewer | |
| ==> Updated Formulae | |
| abcmidi adwaita-icon-theme grakn libmicrohttpd | |
| ==> Downloading https://homebrew.bintray.com/bottles/bash-completion-1.3_3.high_sierra.bottle.tar.gz | |
| ######################################################################## 100.0% | |
| ==> Pouring bash-completion-1.3_3.high_sierra.bottle.tar.gz | |
| ==> Caveats | |
| Add the following line to your ~/.bash_profile: | |
| [ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion | |
| Bash completion has been installed to: | |
| /usr/local/etc/bash_completion.d | |
| ==> Summary | |
| 🍺 /usr/local/Cellar/bash-completion/1.3_3: 189 files, 608.2KB | |
| End! | |
| GAs-MacBook-Air:git_practice_sample_resume ga$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment