You are supposed to share all your work through exercises and practical sessions in this repository. Here is how:
- Share your GitHub link under the Discussion forum of the course page on Blackboard.
- Clone this repository:
git clone https://github.com/nsadili/pp2-course-work.git
- Change directory to the repository:
cd pp2-course-work
- Check if the clone was successful.
- Create a branch in the local repo (firstname_lastname_id):
git checkout -b nuraddin_sadili_12345
- Push the new branch to the remote repository:
git push origin nuraddin_sadili_12345
Note: this must be your branch name. - You can always check the list of branches and the current branch:
git branch
for local branches orgit branch -a
for local and remote branches. - To switch between branches use:
git checkout branch_name
- Every week first make sure you are on your own branch or switch to it using the previous commad, then follow the instruction in Exercise and Practical sessions and add changes to your branch in the local repository.
- Commit your changes:
git add -A
git commit -m "Add a descriptive message."
- Push the changes on the local branch to the remote one:
git push origin nuraddin_sadili_12345