Every bioc/fhcrc project (including this one, the githubCribsheet) is a separate repository maintained under
https://github.com/Bioconductor
- Register as a user: https://github.com/signup/free
- Send an email to pshannon AT fhcrc.org so that I can give you permissions to create your repo under Bioconductor.
- Go to https://github.com/Bioconductor. Sign in.
- Create your new repo by clicking on the leftmost of the three buttons you will find at the top right corner of the page. It has a '+' on it.
- This takes you to a new page where you will be asked to name your project.
- On this same page you can edit your repo's README.md which (like this file you are currently reading) records the central documentation for your project.
- Save your changes to README.md by clicking on the Commit Changes button found at the bottom right corner of the page.
git config --global user.name "your.github.account.name"
git config --global user.email "you@place.com"
- configure the credential.helper. Alas, this step differs by operating system because passwords are saved in different ways on osx, linux and windows. Please get the right instructions for your computer at https://help.github.com/articles/set-up-git
- cd toSomeDirectoryOfYourChoice
git clone https://github.com/Bioconductor/githubCribsheet.git
with these results
- a local repo is created
- a working copy is created
- thus three versions of the code exist
- If you want to use ssh keys instead of https to connect, see this guide: https://help.github.com/articles/generating-ssh-keys
- The command to clone the project is then
git clone git@github.com:Bioconductor/githubCribsheet.git
- Making changes to your working copy propagate them to BOTH of your repos:
- Add some text to REAMDE.md, whose contents you originall created at the github website
- git diff README.md will report differences between your local repo and your working copy
- update the local repo:
git commit -m "added one line, modifying my local working copy" README.md
- update github:
git push
- make sure your local repo and working copy have a record of the update
you just did to the github repo:
git pull
- The new user needs a github login id
- From the project home page, click the Admin button
- Click the Teams button
- Click the Owners button
- Enter the new user's github id