Sam@LAPTOP-CJKC92UJ MINGW64 ~
$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/Sam/.ssh/id_rsa): c
Sam@LAPTOP-CJKC92UJ MINGW64 ~
$ bash
$ ssh-keygen.exe -t rsa -b 4096 -C "Acct for github"
$ pwd
/c/Users/Sam/.ssh
Sam@LAPTOP-CJKC92UJ MINGW64 ~/.ssh
$ ls
id_rsa id_rsa.pub known_hosts
Sam@LAPTOP-CJKC92UJ MINGW64 ~/.ssh
$ cat id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCh8i43rkLfCnmjNS3dabppnnzEI0j6zYG/L4ovMK2vv+t3W4bPm6D90WcGfJKIKnJIuKi3unv1wXL0mzJ3IIIVV32TyY4UfkkL2dP+7W3ZrOttaUjdBS6J7xdcoVSVVPBmRXtt/1/pgNeIIV4ZGE8etlmTxueYvJDs5edGLSFX5W8l6NR81Kun/a/v4u6yTO8qdkH04LDANiNxYkZQpyVuDQAz1BqS0SvCmtghfd6le+Ux5gL4X+lGSTx6J/Jz4aaR5eoOjkI4nL5vMMboWXP1cBYc9wXm6fkQQmWg13sZIAJe3GND2QvjvQ+d+/m6HhTgJ5jQzqksXzZPWaAeGPphZ/b1oKlzChW1JWc4vPkRGr95fTy/D7DyIgdm+TSW4FOb7ljs5K82qVfWs048VtO2k4N+IZ8ZKBv0g8n5otl1rGQDN02oJWVXDKOo/IRwiJ6ogbFk1TM4Chzcmox9L+1oJP4h1lty9MHoHveUikglQC5sAONT0Pai2qrQo7mWvEsOdTwy2tmTfKGpuTtWwOtcLw7F8YyEbWA56bOE7DsHz83ODqyg0GalaZ/mgFvVNdjUV2oUfCKbu516RzDO06ZMjnE4sQI+5waN5ke4eCBEXxi4ngU51OgP8z0x4BDw+VPO5oj54foDiO2ebh7Un3crw9G+yqxpr/oAvQZ/B6CoQQ== Acct for github
Sam@LAPTOP-CJKC92UJ MINGW64 ~/.ssh
$
Sam@LAPTOP-CJKC92UJ MINGW64 ~/.ssh
$ git config --list
http.sslbackend=openssl
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
credential.helper=manager
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
core.autocrlf=true
core.fscache=true
core.symlinks=false
user.name=Kay
user.email=samk@gmail.com
diff.tool=diffmerge
difftool.diffmerge.cmd=C:/Program\ Files/SourceGear/Common/DiffMerge/sgdm.exe "$LOCAL" "$REMOTE"
merge.tool=diffmerge
mergetool.diffmerge.trustexitcode=true
mergetool.diffmerge.cmd=C:/Program\ Files/SourceGear/Common/DiffMerge/sgdm.exe /merge /result="$MERGED" "$LOCAL" "$BASE" "$REMOTE"
core.longpaths=true
:...skipping...
http.sslbackend=openssl
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
credential.helper=manager
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
core.autocrlf=true
core.fscache=true
core.symlinks=false
user.name=Kay
user.email=samk@gmail.com
diff.tool=diffmerge
difftool.diffmerge.cmd=C:/Program\ Files/SourceGear/Common/DiffMerge/sgdm.exe "$LOCAL" "$REMOTE"
merge.tool=diffmerge
mergetool.diffmerge.trustexitcode=true
mergetool.diffmerge.cmd=C:/Program\ Files/SourceGear/Common/DiffMerge/sgdm.exe /merge /result="$MERGED" "$LOCAL" "$BASE" "$REMOTE"
core.longpaths=true
~
~
~
~
~
~
~
~
~
~
~
~
~
Sam@LAPTOP-CJKC92UJ MINGW64 ~/.ssh
$ git config --list
http.sslbackend=openssl
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
credential.helper=manager
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
core.autocrlf=true
core.fscache=true
core.symlinks=false
user.name=Kay
user.email=samk@gmail.com
diff.tool=diffmerge
difftool.diffmerge.cmd=C:/Program\ Files/SourceGear/Common/DiffMerge/sgdm.exe "$LOCAL" "$REMOTE"
merge.tool=diffmerge
mergetool.diffmerge.trustexitcode=true
mergetool.diffmerge.cmd=C:/Program\ Files/SourceGear/Common/DiffMerge/sgdm.exe /merge /result="$MERGED" "$LOCAL" "$BASE" "$REMOTE"
core.longpaths=true
Sam@LAPTOP-CJKC92UJ MINGW64 ~/.ssh
$ git config --list
http.sslbackend=openssl
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
credential.helper=manager
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
core.autocrlf=true
core.fscache=true
core.symlinks=false
user.name=Kay
user.email=samk@gmail.com
diff.tool=diffmerge
difftool.diffmerge.cmd=C:/Program\ Files/SourceGear/Common/DiffMerge/sgdm.exe "$LOCAL" "$REMOTE"
merge.tool=diffmerge
mergetool.diffmerge.trustexitcode=true
mergetool.diffmerge.cmd=C:/Program\ Files/SourceGear/Common/DiffMerge/sgdm.exe /merge /result="$MERGED" "$LOCAL" "$BASE" "$REMOTE"
core.longpaths=true
Sam@LAPTOP-CJKC92UJ MINGW64 ~/.ssh
$ git config --list
http.sslbackend=openssl
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
credential.helper=manager
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
core.autocrlf=true
core.fscache=true
core.symlinks=false
user.name=Kay
user.email=samk@gmail.com
diff.tool=diffmerge
difftool.diffmerge.cmd=C:/Program\ Files/SourceGear/Common/DiffMerge/sgdm.exe "$LOCAL" "$REMOTE"
merge.tool=diffmerge
mergetool.diffmerge.trustexitcode=true
mergetool.diffmerge.cmd=C:/Program\ Files/SourceGear/Common/DiffMerge/sgdm.exe /merge /result="$MERGED" "$LOCAL" "$BASE" "$REMOTE"
core.longpaths=true
Sam@LAPTOP-CJKC92UJ MINGW64 ~/.ssh
$ ssh-keygen.exe -t rsa -b 4096 -C "Personal Account Key" -f ~/.ssh/personal-key
Generating public/private rsa key pair.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/Sam/.ssh/personal-key
Your public key has been saved in /c/Users/Sam/.ssh/personal-key.pub
The key fingerprint is:
SHA256:ZuJ0VHJ6m4fyMytT0UPGF7Xepg0tHsQvQ/dLCtuOcok Personal Account Key
The key's randomart image is:
+---[RSA 4096]----+
| . o. .o.|
| = +.. .|
| o .+ .+..|
| . ..+oo.+o|
| o S +o..*o*|
| o = o..+.oX.|
| . .=..oo..|
| oE *o |
| o+. . |
+----[SHA256]-----+
Sam@LAPTOP-CJKC92UJ MINGW64 ~/.ssh
$ ls -ltr
total 20
-rw-r--r-- 1 Sam 197121 2156 Jun 8 2020 known_hosts
-rw-r--r-- 1 Sam 197121 3381 Jan 18 22:58 id_rsa
-rw-r--r-- 1 Sam 197121 741 Jan 18 22:58 id_rsa.pub
-rw-r--r-- 1 Sam 197121 3389 Jan 18 23:12 personal-key
-rw-r--r-- 1 Sam 197121 746 Jan 18 23:12 personal-key.pub
Sam@LAPTOP-CJKC92UJ MINGW64 ~/.ssh
$ touch -m 077 ~/.ssh/config
Sam@LAPTOP-CJKC92UJ MINGW64 ~/.ssh
$ pwd
/c/Users/Sam/.ssh
Sam@LAPTOP-CJKC92UJ MINGW64 ~/.ssh
$ ls -ltr
total 20
-rw-r--r-- 1 Sam 197121 2156 Jun 8 2020 known_hosts
-rw-r--r-- 1 Sam 197121 3381 Jan 18 22:58 id_rsa
-rw-r--r-- 1 Sam 197121 741 Jan 18 22:58 id_rsa.pub
-rw-r--r-- 1 Sam 197121 3389 Jan 18 23:12 personal-key
-rw-r--r-- 1 Sam 197121 746 Jan 18 23:12 personal-key.pub
-rw-r--r-- 1 Sam 197121 0 Jan 18 23:12 077
-rw-r--r-- 1 Sam 197121 0 Jan 18 23:12 config
Sam@LAPTOP-CJKC92UJ MINGW64 ~/.ssh
$ chmod 077 config
Sam@LAPTOP-CJKC92UJ MINGW64 ~/.ssh
$ ls -l config
-rw-r--r-- 1 Sam 197121 0 Jan 18 23:12 config
Sam@LAPTOP-CJKC92UJ MINGW64 ~/.ssh
Sam@LAPTOP-CJKC92UJ MINGW64 ~/.ssh
$ pwd
/c/Users/Sam/.ssh
Sam@LAPTOP-CJKC92UJ MINGW64 ~/.ssh
$ pwd
/c/Users/Sam/.ssh
Sam@LAPTOP-CJKC92UJ MINGW64 ~/.ssh
$ cd
Sam@LAPTOP-CJKC92UJ MINGW64 ~
$ pwd
/c/Users/Sam
Sam@LAPTOP-CJKC92UJ MINGW64 ~
$ ls
'3D Objects'
AppData
'Application Data'
best
'Cisco Packet Tracer 7.1.1'
Contacts
Cookies
copy
cracked.txt
Desktop
Doc-Root
Documents
Downloads
Dropbox
eclipse-workspace
Favorites
git
GNS3
gomata
IdeaProjects
IntelGraphicsProfiles
kubectl.exe
Links
'Local Settings'
MicrosoftEdgeBackups
Music
'My Documents'
myproject
NetHood
NTUSER.DAT
ntuser.dat.LOG1
ntuser.dat.LOG2
NTUSER.DAT{ac195edd-5478-11eb-9c89-8a42866465a2}.TM.blf
NTUSER.DAT{ac195edd-5478-11eb-9c89-8a42866465a2}.TMContainer00000000000000000001.regtrans-ms
NTUSER.DAT{ac195edd-5478-11eb-9c89-8a42866465a2}.TMContainer00000000000000000002.regtrans-ms
ntuser.ini
OneDrive
Pictures
PrintHood
projects
PycharmProjects
Recent
Roaming
sam
'Saved Games'
Searches
SendTo
'Start Menu'
Templates
tf
Tracing
Untitled.ipynb
Videos
'VirtualBox VMs'
Sam@LAPTOP-CJKC92UJ MINGW64 ~
$ cd .git
bash: cd: .git: No such file or directory
Sam@LAPTOP-CJKC92UJ MINGW64 ~
$ git init
Initialized empty Git repository in C:/Users/Sam/.git/
Sam@LAPTOP-CJKC92UJ MINGW64 ~ (master)
$ pwd
/c/Users/Sam
Sam@LAPTOP-CJKC92UJ MINGW64 ~ (master)
$ ls
'3D Objects'
AppData
'Application Data'
best
'Cisco Packet Tracer 7.1.1'
Contacts
Cookies
copy
cracked.txt
Desktop
Doc-Root
Documents
Downloads
Dropbox
eclipse-workspace
Favorites
git
GNS3
gomata
IdeaProjects
IntelGraphicsProfiles
kubectl.exe
Links
'Local Settings'
MicrosoftEdgeBackups
Music
'My Documents'
myproject
NetHood
NTUSER.DAT
ntuser.dat.LOG1
ntuser.dat.LOG2
NTUSER.DAT{ac195edd-5478-11eb-9c89-8a42866465a2}.TM.blf
NTUSER.DAT{ac195edd-5478-11eb-9c89-8a42866465a2}.TMContainer00000000000000000001.regtrans-ms
NTUSER.DAT{ac195edd-5478-11eb-9c89-8a42866465a2}.TMContainer00000000000000000002.regtrans-ms
ntuser.ini
OneDrive
Pictures
PrintHood
projects
PycharmProjects
Recent
Roaming
sam
'Saved Games'
Searches
SendTo
'Start Menu'
Templates
tf
Tracing
Untitled.ipynb
Videos
'VirtualBox VMs'
Sam@LAPTOP-CJKC92UJ MINGW64 ~ (master)
$ pwd
/c/Users/Sam
Sam@LAPTOP-CJKC92UJ MINGW64 ~ (master)
$ cd .git
Sam@LAPTOP-CJKC92UJ MINGW64 ~/.git (GIT_DIR!)
$ ls
config description HEAD hooks info objects refs
Sam@LAPTOP-CJKC92UJ MINGW64 ~/.git (GIT_DIR!)
$ pwd
/c/Users/Sam/.git
Sam@LAPTOP-CJKC92UJ MINGW64 ~/.git (GIT_DIR!)
$ cd ..
Sam@LAPTOP-CJKC92UJ MINGW64 ~ (master)
$ rmdir .git
rmdir: failed to remove '.git': Directory not empty
Sam@LAPTOP-CJKC92UJ MINGW64 ~ (master)
$ rm -ef .git
rm: unknown option -- e
Try 'rm --help' for more information.
Sam@LAPTOP-CJKC92UJ MINGW64 ~ (master)
$ rm -rf .git
Sam@LAPTOP-CJKC92UJ MINGW64 ~
$ mkdir git
mkdir: cannot create directory ‘git’: File exists
Sam@LAPTOP-CJKC92UJ MINGW64 ~
$ cd git
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git
$ ls
lab Projects
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git
$ ls -la
total 32
drwxr-xr-x 1 Sam 197121 0 Jan 3 22:26 .
drwxr-xr-x 1 Sam 197121 0 Jan 18 23:18 ..
drwxr-xr-x 1 Sam 197121 0 Jan 3 22:46 lab
drwxr-xr-x 1 Sam 197121 0 Jan 3 22:25 Projects
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git
$ cd .git
bash: cd: .git: No such file or directory
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git
$ pwd
/c/Users/Sam/git
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git
$ ls
lab Projects
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git
$ cd lab
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git/lab (newbranch)
$ ls
a.txt b.txt c.txt d.txt e.txt f.txt g.txt
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git/lab (newbranch)
$ more .git/
COMMIT_EDITMSG description index objects/
config HEAD logs/ refs/
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git/lab (newbranch)
$ more .git/^C
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git/lab (newbranch)
$ pwd
/c/Users/Sam/git/lab
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git/lab (newbranch)
$ cd ../Projects/
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git/Projects (master)
$ ls
MySoftware
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git/Projects (master)
$ ls -la
total 8
drwxr-xr-x 1 Sam 197121 0 Jan 3 22:25 .
drwxr-xr-x 1 Sam 197121 0 Jan 3 22:26 ..
drwxr-xr-x 1 Sam 197121 0 Jan 3 22:26 .git
drwxr-xr-x 1 Sam 197121 0 Apr 12 2020 MySoftware
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git/Projects (master)
$ pwd
/c/Users/Sam/git/Projects
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git/Projects (master)
$ cd ..
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git
$ pwd
/c/Users/Sam/git
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git
$ mkdir lab1
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git
$ pwd
/c/Users/Sam/git
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git
$ cd lab1
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git/lab1
$ pwd
/c/Users/Sam/git/lab1
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git/lab1
$ echo "Testing " >testme
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git/lab1
$ cat testme
Testing
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git/lab1
$ git add .
fatal: not a git repository (or any of the parent directories): .git
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git/lab1
$ pwd
/c/Users/Sam/git/lab1
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git/lab1
$ git init
Initialized empty Git repository in C:/Users/Sam/git/lab1/.git/
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git/lab1 (master)
$ cat >> testme
This is just a testing page
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git/lab1 (master)
$ git status
On branch master
No commits yet
Untracked files:
(use "git add <file>..." to include in what will be committed)
testme
nothing added to commit but untracked files present (use "git add" to track)
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git/lab1 (master)
$ git add .
warning: LF will be replaced by CRLF in testme.
The file will have its original line endings in your working directory
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git/lab1 (master)
$ pwd
/c/Users/Sam/git/lab1
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git/lab1 (master)
$ ls
testme
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git/lab1 (master)
$ git commit -m "Test commit"
[master (root-commit) bed2813] Test commit
1 file changed, 2 insertions(+)
create mode 100644 testme
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git/lab1 (master)
$ git log
commit bed281369c51e63a256c09ec88b2b98c7fabbe2e (HEAD -> master)
Author: Kay <samk@gmail.com>
Date: Mon Jan 18 23:21:33 2021 -0500
Test commit
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git/lab1 (master)
$ git config --list
http.sslbackend=openssl
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
credential.helper=manager
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
core.autocrlf=true
core.fscache=true
core.symlinks=false
user.name=Kay
user.email=samk@gmail.com
diff.tool=diffmerge
difftool.diffmerge.cmd=C:/Program\ Files/SourceGear/Common/DiffMerge/sgdm.exe "$LOCAL" "$REMOTE"
merge.tool=diffmerge
mergetool.diffmerge.trustexitcode=true
mergetool.diffmerge.cmd=C:/Program\ Files/SourceGear/Common/DiffMerge/sgdm.exe /merge /result="$MERGED" "$LOCAL" "$BASE" "$REMOTE"
core.longpaths=true
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git/lab1 (master)
$ git remote add origin https://github.com/samkk/sam.git
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git/lab1 (master)
$ git status
On branch master
nothing to commit, working tree clean
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git/lab1 (master)
$ git log
commit bed281369c51e63a256c09ec88b2b98c7fabbe2e (HEAD -> master)
Author: Kay <samk@gmail.com>
Date: Mon Jan 18 23:21:33 2021 -0500
Test commit
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git/lab1 (master)
$ git push origin master
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Writing objects: 100% (3/3), 236 bytes | 236.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
To https://github.com/samkk/sam.git
* [new branch] master -> master
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git/lab1 (master)
$ pwd
/c/Users/Sam/git/lab1
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git/lab1 (master)
$ gh repo clone harke--/notebook
bash: gh: command not found
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git/lab1 (master)
$ pwd
/c/Users/Sam/git/lab1
Sam@LAPTOP-CJKC92UJ MINGW64 ~/git/lab1 (master)
$ git clone https://github.com/harke--/notebook.git
Cloning into 'notebook'...
remote: Enumerating objects: 32, done.
remote: Counting objects: 100% (32/32), done.
remote: Compressing objects: 100% (26/26), done.
Receiviremote: Total 3582 (delta 10), reused 23 (delta 6), pack-reused 3550
Receiving objects: 100% (3582/3582), 8.79 MiB | 6.83 MiB/s, done.
Resolving deltas: 100% (1781/1781), done.
No comments:
Post a Comment