Added by greg, last edited by greg on Sep 20, 2011  (view change)

Labels:

Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.

1. Create an account on GitHub (https://github.com/signup/free)
2. Go to the ATutor repository (https://github.com/atutor/ATutor)
3. Click on "Fork" to create a copy of the ATutor source code in your account.
4. Setup a Git on your local system (http://help.github.com/set-up-git-redirect/ )
5. From your local development environment issue the command 'git clone git@github.com:USERNAME/ATutor.git' (replace USERNAME)

Also See Git Tips and Tricks

Tips

Keeping your fork up-to-date

(see: Fork a Repo)

Forking a repo on github is pretty easy, there's a button for that. However they do not provide a UI for keeping your fork up-to-date with the parent (upstream) repository.

To keep your fork up-to-date, you'll need to act as an intermediary, shuttling the updates from the upstream repo to your fork. This is handled through git's fetch, merge, push, and remote features.# assumes you have already created a fork of a repo

# assumes you have already created a fork of a repo

# create a clone of the fork specified by "forkURL" and call it forkedRepo
git clone "forkURL" forkedRepo

# set a remote for the upstream repository
git remote add upstream "upstreamURL"

# retrieve the updates from the upstream repository
git fetch upstream

# make sure that you know what you're getting from upstream and what is in your master
git log upstream/master ^master
git log ^upstream/master master

# if everything is good, you can merge upstream into your clone
git merge upstream/master

# now you're ready to update your fork
git push origin master

Issuing a Pull Request

(see: Sending Pull Requests)

Managing a Pull Request

(see: Sending Pull Requests)