Github: Difference between revisions

From DISI
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
This page describes how to use github, which is our version control system.  
This page describes how to use github, which is our version control system.


= Getting Started =
= Create an account on github.com =
* Request an account on github. You can request a free one.
It's free. Write to the [[sysadmins]] asking to have access to our repositories, as in https://github.com/docking-org.
* write to the sysadmins asking to have access to our repositories (see below for a list).
= Set up for ssh access =
Go to https://github.com/settings/ssh and paste your public key in the box


= Getting a fresh copy of a repository and starting to use it =
= Fork for Development =
Go to https://github.com/docking-org/DOCK
Click "Fork" to create your own working copy
On your development machine and set the the trunk as upstream:


git clone git@github.com:[YOUR_USERNAME_HERE]/DOCK.git
git remote origin git@github.com:[YOUR_USERNAME_HERE]/DOCK.git
git remote remove upstream
git remote add upstream git@github.com:docking-org/DOCK.git
After making some changes, save them locally on your machine:
git commit -m "I changed test/file-abc" test/file-abc
or
git commit -a -m "I changed all the files"
After a series of changes are ready to push remotely
git push
If these changes should be added to the master DOCK branch


= Comitting your first change =
Go to https://github.com:[YOUR_USERNAME_HERE]/DOCK.git
 
Click "Pull Request" in the upper-right corner of the file listing
 
Click "Click to create a pull request for this comparison"
 
Add any additional notes you may want
= Best practices for the lab =
Press "Send pull request"
== When and how to branch / merge ==
If you are an administrator in the primary DOCK repository, click "Merge pull request" , add any comments wanted, then click "Confirm merge" and the changes will be added to the DOCK trunk
 
To update your fork with the trunk
== When and how to create a new repository ==
git pull upstream master
 
git push
 
== Merging legacy code into github ==
 
== Backups ==


= Guidance =
* best practices for when and how to branch/merge
* when and how to create a new repository


= Lab repositories =
= Lab repositories =
* docking-org/DOCK - [[DOCK 3]] series software, currently [[DOCK 3.7]]
* docking-org/DOCK - [[DOCK 3]] series software, currently [[DOCK 3.7]]
* docking-org/ZINC - ZINC database creation, curation, management and interface
* docking-org/ZINC - ZINC database creation, curation, management and interface

Revision as of 14:11, 14 March 2014

This page describes how to use github, which is our version control system.

Create an account on github.com

It's free. Write to the sysadmins asking to have access to our repositories, as in https://github.com/docking-org.

Set up for ssh access

Go to https://github.com/settings/ssh and paste your public key in the box

Fork for Development

Go to https://github.com/docking-org/DOCK Click "Fork" to create your own working copy On your development machine and set the the trunk as upstream:

git clone git@github.com:[YOUR_USERNAME_HERE]/DOCK.git
git remote origin git@github.com:[YOUR_USERNAME_HERE]/DOCK.git
git remote remove upstream
git remote add upstream git@github.com:docking-org/DOCK.git

After making some changes, save them locally on your machine:

git commit -m "I changed test/file-abc" test/file-abc

or

git commit -a -m "I changed all the files"

After a series of changes are ready to push remotely

git push

If these changes should be added to the master DOCK branch

Go to https://github.com:[YOUR_USERNAME_HERE]/DOCK.git Click "Pull Request" in the upper-right corner of the file listing Click "Click to create a pull request for this comparison" Add any additional notes you may want Press "Send pull request" If you are an administrator in the primary DOCK repository, click "Merge pull request" , add any comments wanted, then click "Confirm merge" and the changes will be added to the DOCK trunk To update your fork with the trunk

git pull upstream master
git push

Guidance

  • best practices for when and how to branch/merge
  • when and how to create a new repository

Lab repositories

  • docking-org/DOCK - DOCK 3 series software, currently DOCK 3.7
  • docking-org/ZINC - ZINC database creation, curation, management and interface
  • docking-org/INTERNAL - tools not part of released packages
  • docking-org/TOOLS - publicly released tools not specific to ZINC or DOCK

Friends of the lab's repositories

  • rdkit/rdkit - The official sources for the RDKit library
  • ryancoleman/analysis-scripts - Some simple scripts for analyzing lists of data, both paired & unpaired.
  • madgpap/chembl_clippy - cross platform molecular structure rendering app
  • metamolecular/osra - Optical structure recognition software, OSRA source from http://cactus.nci.nih.gov/osra/