Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8855351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:06:56+00:00 2026-06-14T14:06:56+00:00

I’m contributing to the development of an open source project which use a git

  • 0

I’m contributing to the development of an open source project which use a git as a repository for the source code.

After do some modification on the source code I want to generate a patch containig my signature (email address and My name) and send it to the open source project maintainer.

How can I do it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T14:06:57+00:00Added an answer on June 14, 2026 at 2:06 pm

    1) Download source code from the git repository:

    git clone git://address.of.repository/project/ /folder/path/on/my/computer
    

    2) Do some modification on the source code. a new files/folders could be added in the project

    3) set your email address and your name for the git commit signature:

    git config --global user.name "Your Name"
    git config --global user.email you@example.com
    

    After doing this, you may fix the identity used for this commit with:

    git commit --amend --reset-author
    

    4) Before commit the changes. we have to add the new files/folders to the local git repository:

    under the project folder of the source code

    git add <Newfolder>
    git add <Newfile>
    

    4) And then commit locally the modification with:

    under the project folder of the source code

    commit -a
    

    this will open an interactif window

    you can check that commit has detected the edited files and the new files under:

    # Changes to be committed:
    #   (use "git reset HEAD <file>..." to unstage)
    #
    #       modified:   bin/Makefile.am
    #       modified:   configure.ac
    #       new file:   src/new.c
    

    under the window of commit -a, you have to enter comment for your modifications

    and then save your commit with Ctrl + O ( WriteOut) and then Enter and your commit is become saved now

    and then quit the commit -a window with Ctrl + X (Exit)

    5) now you can generate your patch with:

    under the project folder of the source code

    git format-patch -1
    

    this will generate a patch file with a name like 0001-...-...-.. .patch

    If you want to generate patch with signed-off-by just add -s:

    git format-patch -1 -s
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
I want use html5's new tag to play a wav file (currently only supported
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I used javascript for loading a picture on my website depending on which small
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have a French site that I want to parse, but am running into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.