Give Credits ⭐️ whoever deserves
Brief Story
Suppose, you are working on a project which uses the git tool for version management and it is a team project where you see multipleauthors contributing the code.
You are assigned with atask and you took thehelp from one of theco-programmers to get it coded.
If you are really concerned about the help and want tocredit the co-programmer then you can do that by makingco-author-commit.
Giving credits to the programmer is sure of another help from him — blackode
Things to know Before adding a co-author to a commit
- Co-author Email
- Co-author’s commit tocount as a contribution-use email associated with their Github account
- If co-author’s email is private, use their GitHub-provided no-reply email to protect their privacy.
TIP
Helping Co-author to find their no-reply email and get shared
settings > emails
Co-authored-by commits
Here no things are unknown to you. But, we are doing things differently.
Just like you do for a regular commit message and after adding the meaningful description you need to add two empty new lines instead of adding a closing quotation " .
git commit -m "New style of coding>>
On the next line of the commit message, typeCo-authored-by: author-name <name@xxx.com>
with specific information for each co-author. After the co-author information, add a closing quotation mark.
Adding multiple co-authors
Give each co-author their own line and Co-authored-by: commit trailer before closing quotation mark.
After adding your beautiful commit message, in the next push, the message appears with co-authors
The Live Execution
Hope you like them. Thanks for reading…
Join Our Telegram Channel
Happy Coding !
Top comments(1)

- LocationNetherlands
- WorkMessagebird
- Joined
It's also implemented in Gitlab viathis merge. It's not technically a built in GIT feature :)
For further actions, you may consider blocking this person and/orreporting abuse