Welcome to the first lab of MEE 207 Fundamentals of Programming.
This week you will learn basics of Github and how to use GitHub Classroom and submit your assignments.
- Git is a tool to track changes in your code. With Git you can track the changes you make to your project so you always have a record of what youβve worked on and can easily revert back to an older version if need be.
- GitHub is an online platform where you store and share your Git projects.
- In this course, you will use GitHub to receive lab templates and submit your solutions.
- Repository (repo): A repository is where your project work happens--think of it as your project folder. It contains all of your projectβs files and revision history. You can work within a repository alone or invite others to collaborate with you on those files.
- Clone: When a repository is created with GitHub, itβs stored remotely in the cloud. With cloning you can make a local copy of the repository on your computer.
- Commit: Save a snapshot of your changes with a short message.
- Push: Upload your committed changes to GitHub.
You can submit your lab assignments in two ways:
- Accept the assignment link shared by your instructor.
- Open Visual Studio Enterprise β Clone a repository.
- Paste the repository link from GitHub Classroom.
- Make your changes (e.g., create or edit files).
- From the Git menu, click Commit All and Push.
- Go to GitHub and confirm that your files appear in the repository.
- Open your assignment repository on GitHub.
- Click Add file β Create new file or Upload files.
- Add or edit your file (e.g.,
main.c). - Write a short commit message (e.g., βadded main.cβ).
- Click Commit changes.
- Refresh your repository page to check your submission.
Create a file named main.c in your repository.
Your program should:
- Print your 9-digit student number on the first line.
- Print your first and last name on the second line.
123456789
Ali Veli