HOME ABOUT WEB GITHUB TOP BOTTOM PREV NEXT
GIT: cloning from GitHub.com
Cloning a github repository “os232”
- Testing the ssh connection to github.com
ssh -T git@github.com
(RESULT)
cbkadal@cbkadal:~$ ssh -T git@github.com
The authenticity of host 'github.com (127.0.0.1)' can't be established.
ED99999 key fingerprint is SHA256:+XYZZYXYZZYXYZZYXYZZYXYZZYXYZZYXYZZYXYZZYXY.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'github.com' (ED99999) to the list of known hosts.
Hi cbkadal! You've successfully authenticated, but GitHub does not provide shell access.
cbkadal@cbkadal:~$
- clone os232 (e.g. for user “cbkadal”)
cd $HOME
mkdir -vp git/
[ -d git/ ] || { echo "ERROR: no git directory!"; exit 1; }
cd git/
- You are not cbkadal!
Replace cbkadal with your GitHub Account.
- You are not cbkadal! Replace cbkadal with your GitHub Account.
git clone git@github.com:cbkadal/os232.git
- By the way, have I told you that your are not cbkadal!?
[ -d os232 ] || { echo "ERROR: no os232 directory!"; exit 1; }
cd os232/
git status
ls -aF
(RESULT)
cbkadal@cbkadal:~$ cd $HOME
cbkadal@cbkadal:~$ [ -d git/ ] || mkdir git
cbkadal@cbkadal:~$ [ -d git/ ] || { echo "ERROR: no git directory!"; exit 1; }
cbkadal@cbkadal:~$ cd git/
cbkadal@cbkadal:~/git$ git clone git@github.com:cbkadal/os232.git
Cloning into 'os232'...
remote: Enumerating objects: 8, done.
remote: Counting objects: 100% (8/8), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 8 (delta 1), reused 0 (delta 0), pack-reused 0
Receiving objects: 100% (8/8), 4.06 KiB | 2.03 MiB/s, done.
Resolving deltas: 100% (1/1), done.
cbkadal@cbkadal:~/git$ [ -d os232 ] || { echo "ERROR: no os232 directory!"; exit 1; }
cbkadal@cbkadal:~/git$ cd os232/
cbkadal@cbkadal:~/git/os232$ git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
cbkadal@cbkadal:~/git/os232$ ls -aF
./ ../ .git/ .gitignore LICENSE README.md
cbkadal@cbkadal:~/git/os232$
clone the Operating Systems class repository
mkdir -pv $HOME/git/
[ -d $HOME/git/ ] || { echo "ERROR: no $HOME/git/ directory!"; exit 1; }
cd $HOME/git/
git clone git@github.com:os2xx/os.git
ls -aF
cd os
git status
ls -aF
(RESULT)
cbkadal@cbkadal:~/git$ [ -d $HOME/git/ ] || mkdir $HOME/git/
cbkadal@cbkadal:~/git$ [ -d $HOME/git/ ] || { echo "ERROR: no $HOME/git/ directory!"; exit 1; }
cbkadal@cbkadal:~/git$ cd $HOME/git/
cbkadal@cbkadal:~/git$ git clone git@github.com:os2xx/os.git
Cloning into 'os'...
remote: Enumerating objects: 763, done.
remote: Counting objects: 100% (763/763), done.
remote: Compressing objects: 100% (617/617), done.
remote: Total 763 (delta 135), reused 751 (delta 126), pack-reused 0
Receiving objects: 100% (763/763), 23.29 MiB | 2.31 MiB/s, done.
Resolving deltas: 100% (135/135), done.
cbkadal@cbkadal:~/git$ ls -aF
./ ../ os/ os232/
cbkadal@cbkadal:~/git$ cd os
cbkadal@cbkadal:~/git/os$ git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
cbkadal@cbkadal:~/git/os$ ls -aF
./ assets/ .dojekyll Gemfile index.md links.md pib.jpg SECURITY.md tips.md
../ _config.yml .dummy .git/ LaTeX/ Log/ playlists.md .shsh tmpindex.md
000.md covid.md faq.md .gitignore _layouts/ Makefile README.md@ Slides/ WEEK/
000.pmd Demos/ favicon.ico _includes/ LICENSE mam.md SandBox/ .template
cbkadal@cbkadal:~/git/os$
- Copying Demos/Week01 to mydemo/
cd $HOME
pwd
mkdir -vp mydemo/
cp -rv git/os/Demos/Week01/ mydemo/
ls -F mydemo/Week01/
(RESULT)
cbkadal@cbkadal:~$ cd $HOME
cbkadal@cbkadal:~$ pwd
/home/cbkadal
cbkadal@cbkadal:~$ mkdir -vp mydemo/
mkdir: created directory 'mydemo/'
cbkadal@cbkadal:~$ cp -r git/os/Demos/Week01/ mydemo/
cbkadal@cbkadal:~$ ls -F mydemo/Week01/
000-READ-THIS-FIRST.txt a03-command-lines-demo a06-loop a09-add-numbers a12-fixfs a15-uts171 a18-uts191
a01-SCREEN-CHECK a04-does-it-exist a07-tester a10-mysha1 a13-last a16-uts181 a19-uts192
a02-sort-n-prepare a05-finding-EXIST a08-append-a-file a11-banding a14-absen a17-uts182 a20-uts201
cbkadal@cbkadal:~$