Source code of Galaxy
Galaxy is an open source software under AFL 3.0 license.
https://github.com/galaxyproject/galaxy/ is the canonical repository.
If you have created piece of code for Galaxy that you would like to share with the community, please follow the instructions contained in https://github.com/galaxyproject/galaxy/blob/dev/CONTRIBUTING.md.
The following branches exist:
release_YY.MM- contains commits of the
YY.MMstable release (recommended branches to run in production)
dev- primary development, new features, largely untested, should not be run in production
master- should be updated to the most recent stable release (but often is lacking in this matter)
You can get the current "in-development" code (where in-development code is on the
dev branch) with:
% git clone https://github.com/galaxyproject/galaxy.git % cd galaxy
And receive updates
% git checkout dev % git pull
Mercurial and BitBucket
Before the switch to GitHub in 2015 the Galaxy source code has been hosted on BitBucket.
How to migrate a Galaxy instance from Mercurial Bitbucket to Git GitHub
- Backup everything.
Find what branch and commit is your Mercurial Galaxy at:
#! highlight sh $ hg log -b $(hg branch)
git clone https://github.com/galaxyproject/galaxyin a temporary directory.
- Find the corresponding commit in the cloned Git repository on the corresponding branch (Bitbucket default->GitHub dev; Bitbucket stable->GitHub master).
- Checkout the GitHub repository at the commit you found in the previous step.
- Backup your
- Replace your
.hg/folder with the
.git/folder from the new checkout.
- Your Galaxy should be switched to Git. Unless you have local changes,
git statusshould show none.
- You can now update to the latest Git revision:
#! highlight sh $ git pull
How to find hg commit in git history
For commits made prior to the switch to git, you can find the former HG commit IDs via git notes. Assuming you have set the canonical Galaxy GitHub repository as the remote
upstream, it is done like so (if you cloned directly from the canonical source rather than your own GitHub fork, the remote would be
% git fetch upstream refs/notes/hg2git:refs/notes/hg2git` % git log --show-notes=hg2git [-1 git-commit-hash]
% cd galaxy.git % git log --show-notes=hg2git -1 579edf01b1416d52ac99f8675b6f86d677d6ee0e Author: Carl Eberhard <carlfeberhard@> Date: Mon Feb 16 17:51:51 2015 -0500 UI, History: allow purging, implement purge option in multi-view dropdowns; Managers: fix purgable return value; API, histories: return purged in summary view Notes (hg2git): hg:6ed64b39bcef417a2361e42336c3a46ad10354de % cd ../galaxy.hg % hg log -r 6ed64b39bcef417a2361e42336c3a46ad10354de changeset: 16658:6ed64b39bcef user: Carl Eberhard <firstname.lastname@example.org> date: Mon Feb 16 17:51:51 2015 -0500 summary: UI, History: allow purging, implement purge option in multi-view dropdowns; Managers: fix purgable return value; API, histories: return purged in summary view