Login  Register

Re: Modern JoGL examples

Posted by Xerxes Rånby on Jul 16, 2013; 2:02pm
URL: https://forum.jogamp.org/Modern-JoGL-examples-tp4029597p4029600.html

elect wrote
How should I do? First I clone it on my pc, then I modify it and commit it or what?
yes, if you work from command line then do the following:

1. create an github account

2. fork jogl-demos by clicking on the fork button on the http://github.com/JogAmp/jogl-demos page
https://help.github.com/articles/fork-a-repo

3. clone jogl-demos to your harddrive
git clone  http://github.com/JogAmp/jogl-demos

4. add files and make your changes
*do your magic* :)

4a.  test build jogl-demos and test the changes, we have added build scripts for the most common platforms jogamp support. Building using these scripts require that jogl and gluegen is checked out next to the jogl-demos folder.
cd jogl-demos/make
sh scripts/make.jogl.all.x86.sh

5. before you commit set a git username and email usign git config
https://help.github.com/articles/set-up-git

6. stage changes for commit using git add
#list files changed using git status and git diff
git status
#use git add to stage changes for commit
git add src/...

7. commit the changes using git commit -v and write a suitable commit message

8. review your commit, i usually use the gitk tool to review the commit, make sure only the fires you intended to include with the commit are included and no extra unrelated changes got included with the commit. Also check that your username and email is setup correctly. You can always undo by moving the current branch back in time and prepare a new commit if you are unhappy how the current commit looks.

9. add your github account as a git remote
git remote add myusername https://github.com/yourusername/jogl-demos.git

10. when you feel all is in order push the commit to github
git push myusername master

11. send a pull request using the github website and optinally post an email here that there is a new pull request that we should take a look at!

Cheers
Xerxes