mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
2.3 KiB
74 lines
2.3 KiB
3 years ago
|
# How to apply a license
|
||
|
NocoDB doesn't require a CLA (Contributor License Agreement).
|
||
|
We require Developer Certificate of Origin (DCO) as an additional safeguard
|
||
|
for the NocoDB project. This is a well established and widely used
|
||
|
mechanism to assure contributors have confirmed their right to license
|
||
|
their contribution under the project's license.
|
||
|
|
||
|
## Modifying existing file
|
||
|
If you modify an existing file, please keep the existing license header as
|
||
|
it is and just add your copyright notice and author:
|
||
|
|
||
|
````
|
||
|
@author <your name> <your email address>
|
||
|
````
|
||
|
|
||
|
## Creating new file
|
||
|
````
|
||
|
/**
|
||
|
* @copyright Copyright (c) <year>, <your name> (<your email address>)
|
||
|
*
|
||
|
* @author <your name> <your email address>
|
||
|
*
|
||
|
* @license GNU AGPL version 3 or any later version
|
||
|
*
|
||
|
* This program is free software: you can redistribute it and/or modify
|
||
|
* it under the terms of the GNU Affero General Public License as
|
||
|
* published by the Free Software Foundation, either version 3 of the
|
||
|
* License, or (at your option) any later version.
|
||
|
*
|
||
|
* This program is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
* GNU Affero General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU Affero General Public License
|
||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
*
|
||
|
*/
|
||
|
````
|
||
|
|
||
|
|
||
|
## How to sign your work
|
||
|
|
||
3 years ago
|
### First configure your Git username/email :
|
||
|
Usually email will be already configured with your github.
|
||
3 years ago
|
|
||
3 years ago
|
```bash
|
||
3 years ago
|
git config --global user.name "FirstName LastName"
|
||
|
git config --global user.email "email@provider.com"
|
||
3 years ago
|
```
|
||
3 years ago
|
Refer [here](https://support.atlassian.com/bitbucket-cloud/docs/configure-your-dvcs-username-for-commits/) for additional details
|
||
|
|
||
3 years ago
|
```bash
|
||
|
git add .
|
||
|
git commit -s -m "commit message"
|
||
|
```
|
||
|
|
||
|
Please note : Use your real name (sorry, no pseudonyms or anonymous contributions).
|
||
|
|
||
|
Once pushed - you should see the commit have the following template in github
|
||
|
````
|
||
|
Signed-off-by: FirstName Initials/Lastname <email@provider.com>
|
||
|
````
|
||
3 years ago
|
|
||
|
## How to sign your previous work
|
||
|
|
||
|
In case you forget to sign your work, you can do the following:
|
||
|
|
||
|
```bash
|
||
3 years ago
|
# sign the last N commits - replace N before executing the command
|
||
3 years ago
|
git rebase HEAD~N --signoff
|
||
|
git push -f
|
||
3 years ago
|
```
|