About the code examples
In order to demonstrate the use of Git, we need to have a small program that we can evolve. The code examples are given in C#, but they are so simple that you'll be able to follow them regardless of your experience with the language. For example, if you can figure out what this does, you're all set.
public class Program
{
public void PrintHello()
{
Console.WriteLine("Hello World!");
}
}
This code declares a class (don't worry about what that is) named Program
. Inside that class is a method (function) called PrintHello
that prints Hello World
to the console (your screen).
This is about as complex as it gets, and I'll explain each code snippet as we go.