-
You must be aware of the CC/NC 4.0 license
-
The CC/NC 4.0 License header with your information must be in the header of all the input deck files. The license header has following template :
#---1----|----2----|----3----|----4----|----5----|----6----|----7----|----8----|----9----|---10----| # <Insert Model Name> ("Model") # Copyright (C) <Insert Copyright Year> <Insert Copyright Holder> ("Holder") # Model is licensed by Holder under CC BY-NC 4.0 # (https://creativecommons.org/licenses/by-nc/4.0/legalcode). #---1----|----2----|----3----|----4----|----5----|----6----|----7----|----8----|----9----|---10----|
GitHub has a limitation on file size of 50 MB. If model or components are bigger, contact the owner of the Repository, the files can be published differently.
- Create your github account
- Review your account setting, in particular: email, 2FA
- Fork the OpenRadioss/ModelExchange repository
-
Install git
-
On Linux
RHEL / CentOS : yum install git Ubuntu / Debian : atp-get install git
-
On Windows : Installation package can be found on Git Web site. The package come with some useful tools like ssh
Download and install the package with your browser [https://git-scm.com/download/win](https://git-scm.com/download/win)
Git will be available in command line shells : cmd.exe or Linux terminal
-
-
Setup your git user, name, and email
git config --global user.name=[git user name] git config --global user.email=[git email]
- If you don't want to expose your email address: On gitHub, In [GitHub Accounts] / Settings / Emails :
- Check Email Settings box "Keep my email addresses private"
- Select "Block command line pushes that expose my email here"
- If you don't want to expose your email address: On gitHub, In [GitHub Accounts] / Settings / Emails :
-
Create and Add your ssh key in your GitHub account settings / ssh. Check Add SSH key in gitHub for further information.
-
Forks can be updated with main repository :
- In your GitHub page : Select your ModelExchange Fork : "<> Code"
- Select "Update Fork"
-
On your local machine : you can clone your fork to access the ModelExchange Repository : In a shell terminal / Linux or cmd.exe / Windows
git clone git@github.com:[GitHub Account login]/ModelExchange
-
Link your Fork with the Official Repository "Upstream"
* Enter your ModelExchange directory * Type : git remote add upstream git@github.com:OpenRadioss/ModelExchange.git
-
Enter your clone on your local machine
-
Create a Dev Branch from main
git checkout -b [dev Branch]
Following tasks must be done:
-
Add a Folder and place the Model in it
-
Create a Readme.md file in the directory to explain briefly what the model does and present some results. Check here for the Template
-
work on your files : Iterate over:
- Open and edit files
git status
to see which files has been editedgit add <filename>
each filegit commit -m “<message>”
with a good message.
-
If you have done several commits, do the rebase task to merge them into one :
git rebase -i main
To squash all your commits into your first one: replace
pick
bysquash
on for all your commits except your first one. Do not squash your commits into someone else's commit. Do not embed someone else's commit into your squashed commit. -
Rebase your work on the latest version of OpenRadioss/ModelExchange (you can also follow this)
git pull --rebase upstream main
- Solve conflicts, loop over:
- Edit conflicting files and resolve conflicts
git add <filename>
to mark files as resolved (do not commit)git rebase --continue
-
Upload your changes to GitHub
git push -f origin [dev Branch]
- On GitHub Web, create a "Pull Request" from your branch to bring your changes into the main repository
Maintainers will review the changes. They may require changes , and merge the Pull request in the code.