A few steps, biased toward quick and easy use for DHSI 2015:
- Download and install Git at git-scm.com.
- Sign up for GitHub at github.com/join.
- Create and name a public repository ("repo") without a ReadMe file.
- Open your Git Bash app (Windows) or terminal (OSX). We'll call this the "command line."
- Move to your desktop by entering
cd ~/desktop/in the command line. - Enter
git config --global user.name YOURNAME(replacing YOURNAME with the name you want to attribute to your work). - Enter
git config --global user.email EMAIL(replacing EMAIL with the email address you used for GitHub). - Enter
git init dhsi2015(which creates a directory on your desktop). - Enter
cd dhsi2015(change your directory todhsi2015). - Enter
touch README.md(create a README file for your repository). - Enter
open README.md(open the README file). - In the file, describe your repo. The first line should start with a
#and be followed by a title for your repo. This is your header, with theh1tag in HTML. - Save your file:
control+Sorcommand+S. - In the command line, enter
git remote add origin https://github.com/handle/repo.git(replacinghandlewith your GitHub handle andrepowith the name of the repo you create during Step 3). - Enter
git remote -v(verifying your remote address). - Enter
git add --all(add all changes made to your repo). - Enter
git commit -m 'message'(replacingmessagewith a description of your changes, e.g.,created README.md). - Enter
git push origin master(push your files to the remote repo stored at GitHub.com). - Visit your repo online to confirm changes.
- As you add and change files to your local repo, repeat Steps 16 - 18 above.