Can someone explain to me how to make a repository on github and do commits. My
ID: 3679082 • Letter: C
Question
Can someone explain to me how to make a repository on github and do commits.
My hw is to create a repository on GitHub for a Java program that finds the median (middle), mode (most common), and mean (average) for an array of integers. Create your program in such a way that you have a commit for the median method, a commit for the mode, and a commit for the mean.
But I'm really confused on what the teacher means by commits
I've already made a java program that finds the median, mode and mean but I don't understand what the teacher means by saying there should be a commit for each of these
Explanation / Answer
Commit is what saving the data prior to the changes.
As per the GitHub Glossary consider the following information.
Commit
A commit, or "revision", is an individual change to a file (or set of files). It's like when you save a file, except with Git, every time you save it creates a unique ID (a.k.a. the "SHA" or "hash") that allows you to keep record of what changes were made when and by who. Commits usually contain a commit message which is a brief description of what changes were made.
So, make changes in each method by replacing any of the array numbers to find mean, median, mode and saving with modified values.
Hope this finds your solution.