wiki:github_molgenis

Version 12 (modified by antonak, 12 years ago) (diff)

--

configure

https://help.github.com/articles/set-up-git

update project = pull project

  • Go into the directory molgenis git pull --all

"commit" = push a change :

  • Edit a file vi DEVELOPERS
  • git add filename
  • git status
  • git diff
  • git commit -a (Commit the code locally, ) or git commit –m ‘Changed a file’
  • git status
  • git push origin ( If your done update your ‘fork’ git push, Push the local commits to your repository)
  • git push origin master (Add an upstream remote)

On the website: Create a PULL request to: molgenis/molgenis/master This will pack ALL current changes in master to be submitted to molgenis WHICH IS BAD! GOOGLE: “Creating good pull request”

Every morning:

  • PULL from the molgenis organisation : *git remote add molgenis git://github.com/molgenis/molgenis.git
  • GIT STATUS -> if changes:
  • git commit (or git stash)
  • Get changes git pull molgenis master Solve any conflict git commit –m “Morning molgenis merge” git push