Basicspage
GitHub is what is known as a configuration management tool. It is basically a sophisticated way to
store and retrieve your files. You need an account, which is free, and once you have that you can
create repositories or repos
and store as much stuff as you want, also for free. Think of it:
unlimited storage of all your code, documents, videos, books, everything.
For
Free
There are several ways to access GitHub. You can use the browser, which will be demonstrated in class
and is a VERY easy way to get started. You can also use the command line from a terminal window, and
this page will show you some typical commands to use, with explanations. There is also a thing called
GitHub Desktop
which you can install and use on your local computer. That will be shown in
class as well.
git bashyou can use to run commands.
Note: the following instructions assume you are familiar with basic command line functions. You can review them at: this page.
These commands will work either for Mac or WIN using git bash. The $
indicates the terminal
window prompt and is NOT part of the commands.
git config --global user.name <name>
git config --global user.email <email address>
git init <repo-name>git clone <URL>git status$ git add <file>$ git add .$ git commit -m <message>
-m denotes
the short commit message. You should be doing this for all your commits$ git push$ git pullThis is not an exhaustive list of git commands! If you want to get the most out of git, consider checking out a full cheat sheet at: this link.