Skip to content
Yunseong Kim edited this page Aug 15, 2024 · 6 revisions

perf wiki

This content from perf.wiki.kernel.org to markdown format.

How to mirror Github → Gitlab

Easy Linux Kernel contribution guide

Using Gmail

  1. Go to gmail and enable the IMAP.

image

  1. Go to 2-step verification and App Passwords Page and Setup App Passwords.

image

  1. You can add your Google 2-step verification APP password directly into the smtpPass field in your ~/.gitconfig file to use it.
[user]
        email = [email protected]
        name = This is my Name

[sendemail]
        confirm = always
        smtpServer = smtp.gmail.com
        smtpServerPort = 587
        smtpEncryption = tls
        smtpUser = [email protected]
        smtpPass = CAUTION-THIS-IS-APP-PASSWORD-FILED-DO-NOT-DISCLOSE-ANYONE
  1. You can try sending an email to yourself to make sure everything is working correctly.
 $ git send-email --to='[email protected]'

Make some patch file

Staging your updated code.

 $ git status
 $ git add <modified or added file path>

Create a commit message using an existing commit as a reference and customizing the content, formatting, etc.

Add summary commit message

 $ git commit

If you need some update your commit, then do --amend.

If you need to updating previous commit, update your commit.

 $ git commit --amend

Check up your commit.

 $ git log -p

Make a patch file.

$ git format-patch -1
$ ls
0000-MY-PATCH.patch

Check my patch file. And update if there are messages.

$ scripts/checkpatch.pl 0000-MY-PATCH.patch

git send-email patch

We can use smtp-pass parameters.

$ scripts/get_maintainer.pl $MY_PATCH_APPLIED_FILE
$ git send-email --smtp-pass=$APP_PASSWORD  --confirm=always  --to='I am Maintainer <[email protected]>; I am Reviewer <[email protected]>' --cc="[email protected]" -M -1

You can check the 2xx message when mail sent from your terminal and go to search the corresponding part on this-is-mailing vger in the google search bar.

Clone this wiki locally