- an understanding of how to use git and GitHub
- a basic understanding of the Java programming language
- a system that runs some flavour of Unix or Linux
- software installed:
- git 1.x
- java 8
- maven 3.x
Note for Windows 10 users: please see github.com/mcalthrop/ubuntu-windows-setup for information about how to set up Ubuntu on your system.
- Browse to github.com; if you don't have an account, create one, and then log in
- Browse to github.com/mcalthrop/testing-with-java
- Fork the repository into your own GitHub account (click the Fork button near the top right of the page)
- Open a terminal/shell app on your local machine, and follow the instructions below
Configure your name and email address for commits (be sure to use the email address you have registered with GitHub):
git config --global user.name "Your Name"git config --global user.email "your.name@example.com"Go to your home directory:
cdCreate a development directory:
mkdir developmentChange to that directory:
cd developmentClone the repository you just created, remembering to replace your_github_username with the username you created on GitHub:
git clone git@github.com:your_github_username/testing-with-java.gitChange into the directory for that repository:
cd testing-with-javaCreate a git branch called learning that will hold the changes you make while you are learning, and switch to it:
git checkout -b learning(You could call that branch something other than learning, but that seems as good a name as any).
You can then proceed with the lessons.
Remember to regularly commit the changes you make, and to push your locally-committed code back up to the learning branch on your GitHub account like this:
git push origin learning(where learning is the name of the branch you created and switched to)