To submit your assignments, you need to push your changes to GitHub. Follow these steps:
Follow these steps to push your changes to GitHub using Git command line.
Open your Terminal and follow the steps below:
-
Add Your Changes: Add the files you have worked on.
git add <relative/path/to/assignment/folder>
-
Commit Your Changes: Commit the changes with a meaningful message:
git commit -m “submitting assignment <name>
-
Push to GitHub: Push the changes to the GitHub repository:
git push origin main
Alternatively, you can use VSCode's built-in Source Control feature:
-
Open the Repository: Click on the source control tab in VSCode.
-
Stage Your Changes: Stage the files you want to submit by clicking the "+" icon next to each file in the Source Control view.
-
Commit Your Changes: Enter a commit message in the text field at the top of the Source Control view and press Enter to commit your changes.
-
Push to GitHub: Click the three dots (...) in the top-right corner of the Source Control view and select "Push" from the dropdown menu to push your changes to GitHub.
By following these steps, you can successfully submit your assignment to GitHub using either Git command line or VSCode's Source Control.