Differences between revisions 12 and 13
Revision 12 as of 2015-02-24 17:00:55
Size: 2842
Comment:
Revision 13 as of 2015-02-25 01:40:26
Size: 2841
Editor: RobinDunn
Comment: typo
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
The wxPython code is stored in a Github repository and the preferred way of provinding changes is via PR's (Pull Requests), the following page will provide some pointers on how to work with git and Github. The wxPython code is stored in a Github repository and the preferred way of providing changes is via PR's (Pull Requests), the following page will provide some pointers on how to work with git and Github.

How to contribute using GIT

The wxPython code is stored in a Github repository and the preferred way of providing changes is via PR's (Pull Requests), the following page will provide some pointers on how to work with git and Github.

The first thing you should do is create a a free Github account and fork Robin's repo (see top right of screen), see also Fork a repo. Then to get this code to your local PC you need to clone the fork you did, see also Git basics.

Create a pull request

A PR can be a simple one line change or a new widget or anything in between this. A pull request can be commented on and often the comment will mean changes to a PR before it will be merged, therefore it is strongly suggested to create a branch in your clone of the repo for each PR.

  1. git checkout master - switch to the master branch

  2. git checkout -b yourbranchname - create 'yourbranchname' and check it out, sometimes called switch to it

  3. make changes and git commit -a -m 'add your first change' - do this frequently

  4. git push

  5. create the PR on your github account from 'yourgitaccount:yourbranchname' to 'robinD42:master'
  6. getting comments to the PR
  7. make changes and commit frequently
  8. git push the PR will be updated automatically

Resync your fork with Robin's master

After Robin has merged your change or done other changes to the master branch you need to get this into your fork.

Your fork is normally referred to as 'origin' and Robin's master is normally referred to as 'upstream'.

You need to add Robin's repo as upstream.

  • - git remote add upstream git@github.com:RobinD42/Phoenix.git

Get the changes from upstream and push them to your fork.

  1. git fetch upstream

  2. git checkout master

  3. git rebase upstream/master

  4. git push

Start with GIT

Git immersion tutorial This looks pretty comprehensive, just replace 'Ruby' with 'Python':)

Fork a repo

git cheat sheet

Graphical tools for GIT

On Windows

Git for Windows

Tortoise for GIT - a graphical UI

On MAC

Git

GitX - a graphical UI

On Linux

ContributeWithGIT (last edited 2015-04-08 23:28:11 by MoonKid)

NOTE: To edit pages in this wiki you must be a member of the TrustedEditorsGroup.