-
Fork the master https://github.com/CODAIT/R4ML to your own repo (ex: https://github.com/aloknsingh/R4ML)
-
Clone the resipatory using git clone. (See https://github.com/CODAIT/R4ML#r4ml-development-and-usages)
-
Add the upstream
git remote add upstream https://github.com/CODAIT/R4ML
- Create a branch for the JIRA you are working on
git checkout -b <GITHUB_USER_ID>_<JIRA_ID><OPTIONAL_STRING>
For example:
git checkout -b aloknsingh_R4ML-117
-
Make the necessary changes to the source code
-
Check-in the files you modified
git add <MODIFIED_FILES>
- Test your changes
./bin/install-all.sh | tee install.log
egrep -i "error" install.log
- Resolve any errors and re-run the test again as needed. Once everything looks good commit your changes to your local branch.
git commit
- Make sure your branch is upto date
git pull --rebase upstream master
git status
-
If there are any merge conflicts fix them manually by editing the source code (hint: look for "<<<<<<<" and ">>>>>>>"). Once you have resolved the conflicts re-add the files using
git add -A
-
Once you are done fixing conflicts run the following:
git rebase --continue
./bin/install-all.sh | tee install.log
egrep -i "error" install.log
git push --set-upstream origin <GITHUB_USER_ID>_<JIRA_ID>
# in case of above command not working
# you can try using the force options
# git push -f --set-upstream origin <GITHUB_USER_ID>_<JIRA_ID>
# it is recommented you merge the changes before using the -f but above options shuold
# be fine
git push
-
Login to github.com, go to your local branch, select the branch you worked on and click "Compare & pull request".
-
Make sure everything looks good then click "Create pull request"