Make sure you are in the technologiesoutcomes and while in the technologiesoutcomes directory create a subdirectory called myassignments and change into it.
mkdir myassignments
cd myassignments
Then clone the repository below into your myassignments subdirectory.
git clone https://github.com/technologiesoutcomes/assignments
Then create a branch for your assignment using your names and the assigment number. So if your name is Bob Ndikam and your are doing assignment2 you will create the branch as follows.
git checkout -b bobndikam-assignment2
Verify that you are sitting on the newly created branch.
git branch
You should see that your branch is displayed with a star.
Change into the assignments directory
cd assignments
Change into the relevant assignment submissions subdirectory. For instance if you want to submit assignment2 work, change into the assignment2 submissions subdirectory as follows;
cd assignment2/submissions
While in assignment2/submissions subdirectory, copy the student1 subdirectory to a new subdirectory with a name exactly matching your names - the names by which you are known on the platform. No spaces and only use lower case characters. You must retain this naming convention going forward.
For instance if your names were Bob Ndikam, your directory would be called bobndikam
cp -R student1 bobndikam
This will create a new subdirectory named with your names. Change into your new subdirectory.
cd bobndikam
Launch Visual Studio Code.
code .
Edit the README.md file and add your answers to the assignment questions. Save your work.
Change back to the root of your repository.
cd ../../
Push your assignment submission to the main GitHub repository.
git add .
git commit -m "bobndikam: My submission for assignment 2"
git push
Go and check the GitHub repository and verify that your submission has appeared and is in the right place. If it is, this completes the submission. If not take action to make whatever corrections are necessary.
-
Create a repository in your GitHub called "assignments" and make a note of its address.
-
Clone the technologiesoutcomes assignments repository
git clone https://github.com/technologiesoutcomes/assignments.git
- Do the assignments in the relevant assignment directory in your local repository. When you are ready to push, you should push to your own GitHub repository.
To push to your own GitHub you will have to change the push address of your local repository. Change the push address as follow. Change the ???????? below to your GitHub account name.
git remote set-url --add --push origin https://github.com/???????/assignments.git
- Then run the commands to push
git add . git commit -m "My submission for assignments" git push
- Regularly refresh your repository as follows:
git pull
- Post the link of the assignments on the whatsapp group.