git snippet: merge the changes on a file from another person’s branch and keep the authorship

something i just learnt:

$ git checkout <source_branch> <file>

$ git commit --author="<source_branch_author_name_and_email>" -m "<shiny_message>"

that’s good to know.

more info on :jasonrudoph and stackoverflow

This was posted 1 year ago. It has 0 notes and 0 comments.