Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --reset-author flag #146

Closed
spalger opened this issue Aug 26, 2019 · 1 comment · Fixed by #148
Closed

Add --reset-author flag #146

spalger opened this issue Aug 26, 2019 · 1 comment · Fixed by #148

Comments

@spalger
Copy link
Contributor

spalger commented Aug 26, 2019

When amending a commit you can use the --reset-author flag to redefine the author of the commits as yourself. This is generally not recommended, but is desired for backporting automated commits like those done by renovate (mostly so that CLA checking works).

@spalger
Copy link
Contributor Author

spalger commented Aug 26, 2019

Example of doing this manually: elastic/kibana#44000

git co -b backport/7.x/pr-{n}
git cherry-pick -xn {sha}
git commit --author "{username} <{username}@users.noreply.github.com>"
# prefix pr title with [{branch}]
git push origin ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant