Browse Source

Update HowToApplyLicense.md

pull/562/head
o1lab 3 years ago committed by GitHub
parent
commit
f221d4fc74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 23
      contribute/HowToApplyLicense.md

23
contribute/HowToApplyLicense.md

@ -40,24 +40,27 @@ it is and just add your copyright notice and author:
## How to sign your work ## How to sign your work
````
Signed-off-by: FirstName Initials/Lastname <email@provider.com>
````
Use your real name (sorry, no pseudonyms or anonymous contributions). ### First configure your Git username/email :
If you set your `user.name` and `user.email` git configs, you can sign your Usually email will be already configured with your github.
commit automatically with `git commit -s`.
You can also use git [aliases](https://git-scm.com/book/tr/v2/Git-Basics-Git-Aliases)
like `git config --global alias.ci 'commit -s'`. Now you can commit with
`git ci` and the commit will be signed.
### Configure your Git username/email
```bash ```bash
git config --global user.name "FirstName LastName" git config --global user.name "FirstName LastName"
git config --global user.email "email@provider.com" git config --global user.email "email@provider.com"
``` ```
Refer [here](https://support.atlassian.com/bitbucket-cloud/docs/configure-your-dvcs-username-for-commits/) for additional details Refer [here](https://support.atlassian.com/bitbucket-cloud/docs/configure-your-dvcs-username-for-commits/) for additional details
```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>
````
## How to sign your previous work ## How to sign your previous work

Loading…
Cancel
Save