Skip to content

Latest commit

 

History

History
93 lines (66 loc) · 1.78 KB

W01-05.md

File metadata and controls

93 lines (66 loc) · 1.78 KB
layout title
layout
OSP Weekly Assignments


OS Week 01 Assignment #2: GIT, GITHUB, and SSH

Testing SSH to GitHub.com

ssh -T git@github.com

(RESULT)


Clone repositori OS242 for user "cbkadal"

  • Remember: You are not cbkadal! Replace cbkadal with your GitHub Account.
mkdir -pv $HOME/git/
cd $HOME/git/
git clone git@github.com:cbkadal/os242.git

(RESULT)


Clone repository DEMOS

mkdir -pv $HOME/git/
cd $HOME/git/
git clone git@github.com:os2xx/demos.git

(RESULT)


mylog: Updating add commit push

  • ATTN:
    • Make sure you have not missed setting file .gitconfig{:target="_blank"}
  • pull from GitHub.com (e.g. for cbkadal, "os242")
cd $HOME/git/os242/TXT/
git pull


  • Edit mylog.txt
    • Do not "echo vi", do "vi" or your other editor.
    • See also here{:target="_blank"}.
echo vi mylog.txt
sleep 1
cat mylog.txt


The 4 GIT MANTRAS: (pull), add, commit, push

git add -A
git commit -m "os242 cbkadal UPDATE mylog.txt"
git push