The aim of this assignment is to use the vi/vim editor to edit a small C program, as well as use git and Github to create a new branch on the repository and open a Pull Request. I've recorded a YouTube video that describes the expectations for completion:
-
The repository contains a file
hello.c
which is a "Hello, World!" program written in theC
programming language. However, the file has a few syntax mistakes that is preventing it from compiling. The correct code/syntax should be#include <stdio.h> int main() { printf("Hello, World!"); return 0; }
Create a new branch of the repository called
bugfix
and make the necessary edits to the file to get it to compile correctly in this branch.You might need to revisit the Git and Github video lesson for a reminder on how to create a branch.
-
Commit changes to the
bugfix
branch and push those changes back to Github (do not merge withmaster
locally). -
In Github, create a pull request to merge the
bugfix
branch intomaster
. I will act as a collaborator and merge your pull requests. If the tests do not pass on master, I will use the Github interface to request additional changes to the code.
If you would like to check to see if your edits to hello.c
are correct run the following command at the Terminal command prompt
python test.py
A status message of OK
indicates you have the correct answer.