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
- 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.
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