My repo to house homework for the UCB Data Bootcamp.
cd ~/
mkdir GitHub
mkdir GitLab
cd GitLab
git clone https://ucb.bootcampcontent.com/UCB-Coding-Bootcamp/UCBER201805DATA2-Class-Repository-DATA.git
cd ..
cd GitHub
git clone https://github.com/<username>/DataBootCampHW.git
cd ~/GitLab/UCBER201805DATA2-Class-Repository-DATA
git pull
From here you can check the changes, if any, and manually inspect those updated files.
After you have created a new homework file, manually copy it and paste it in the GitHub repo file created to hold your homework
cd ~/GitHub/<REPO-NAME>
git pull
NOTE: using ./* gives you every file (*) in the current (.)
directory (/)
git add ./*
git commit -m "Updating the repo with the latest files"
git push
Verify the files are there by checking GitHub web interface.